Catherine came to my office asking if we can create a compact version from a sparse table in Tableau, so that the table would look a lot more compact. This allows a succinct view of the table content. It saves screen real estate and makes it easy to read for business audience.

I mocked up her problem and this is something she would like to see:

Of course we can. I remember I did something a few years back. We can use that technique to solve this problem.

The Sparse Table

The sparse table may result from any particular filtering. Here is my example.

To create the sparse table, we first calculated the quarter over quarter (QoQ) sales ratio in the Superstore data set. Then the result is filtered to keep only those that have QoQ above 100%. 
Then place the products (Sub-Category) on the Label card instead the of ratio. And we got the sparse table as shown in the first image above.

Create a Ranking List per Column

Note that the green pill filter (QoQ) is used to filter the table and keep only the items with QoQ >=100%. Then we need to create a unique rank list. Let's name it RankU.
  •     Rank_Unique(QoQ)
Place RankU on the Rows and Sub-Category on the Details card. We get this:
RankU's table calculations have to be set up properly. It includes the calculation of QoQ which is computed along Order Date. RankU is calculated along Sub-Category.
This way, we get the compact table with all the non-null items on top.

Note that QoQ can be replaced by any other calculations of your own choice. QoQ is already an aggregated quantity. If not aggregated, you need to aggregate the measure first with Sum() or others.

Alternative Designs

If you think the above is too complicated, here is an alternative with some compromises in formatting. Just go without RankU. Leave Rows blank. Here is the resulting view.
Note that, in this case, the items are always center-aligned and you can't change the alignment. Maybe this is good enough for you.

Another design is adding some visuals to the straight table, showing relative QoQs.

Feel free to download the demo workbook to further explore. Leave your comments if questions or contact me at twitter @aleksoft.
0

Add a comment

(Refresh the page if you want to view the gif image multiple times. Or go to Tableau Public and click the button at the top-right corner.)

Jake and I collaborated on a dashboard. He told me that he learnt a way to create an in-place help page in Tableau. He first saw it at a conference somewhere and couldn't recall who the speaker was. So I am blogging here about it but the credit goes to somebody else. If anyone knows who the original creator is, leave a comment below.

The key idea is to float a semi transparent worksheet on top of the dashboard, where a help text box is strategically placed on top of each chart. This way, we can explain how to view each chart and what data points are important, etc. This worksheet is collapsible by a show/hide button. 

Below I would like to show how this worksheet can be constructed.

1. Sheet with a single data mark.

  • Double click the empty space in Marks panel and add two single quotes. Make the null pill a text label. This creates a single null mark.
  • Set the view as "Entire View"

2. Create an show/hide button

  • Go to the target dashboard
  • Drag a floating vertical container to the dashboard, making it cover all the area of interest.
  • Drag the Single Null Mark sheet and drop it into the above container. Hide the sheet title.
  • Create an open/close button for the container and place the button at the top-right corner.

3. Add annotations

  • Format the sheet background opacity as 70% in the layout manager             
  • Select area annotations and place them anywhere of interest. 
  • Write help text and format it to highlight important messages.  
  • The text can serve as functional guide and/or insight guide.

Here is an example. Feel free to download the workbook and explore. Click the "i" button at the top-right corner to view the in-place help. 

0

Add a comment

Blog Archive
Loading
Dynamic Views theme. Powered by Blogger. Report Abuse.