Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to collapse a sub-section in tableau crosstab

Tags:

tableau-api

I have the following pivot table:

enter image description here

Is there a way to collapse the "Type" section, so I only have three rows:

  • Movie
  • TV Episode
  • Grand Total

Basically, I'd like to be able to expand each section by clicking into it. Otherwise I'll have thousands of values that would require tons of scrolling to view all.

Here is one example, but this seems overkill (creating buttons with actions) and not quite practical to do it quickly: http://www.thedataschool.co.uk/ben-davis/drill-hierarchies-tableau-website-style-navigation/.

like image 613
David542 Avatar asked Feb 18 '17 21:02

David542


People also ask

Can you expand and collapse in Tableau?

In Tableau one can create a hierarchy using multiple dimensions, which enables an easier drill down on the views. The drill-down is done by clicking the + or – symbol on respective views. This way of expanding and collapsing the hierarchies can be cumbersome when it needs to be performed on multiple views.

What is drill down in Tableau?

To drill down and drill up for individual dimension members in a hierarchy: Right-click a table header and select Drill Down or Drill Up . This is often referred to as non-uniform drill down because you expose only the members of interest instead of exposing all the members of a given level.

How do I delete a hierarchy in Tableau?

To remove a hierarchy: In the Data pane, right-click (control-click on a Mac) the hierarchy and select Remove Hierarchy. The fields in the hierarchy are removed from the hierarchy and the hierarchy disappears from the Data pane.


1 Answers

Hierarchies will do what you are looking for. https://onlinehelp.tableau.com/current/pro/desktop/en-us/help.html#qs_hierarchies.html.

On your data source pane, drag the Title dimension and drop it on top of the Type dimension. This will then prompt you to give the hierarchy a title. Hierarchies allow you to drill up and down.

The classic example of a hierarchy is the way dates function. You can drill up and down from year to day.

like image 149
Sam M Avatar answered Dec 27 '22 07:12

Sam M