Expand and collapse hierarchy members
This article shows you how to use the Expand and Collapse functionality in charts, treemaps, and tables.
2. Expand and collapse
Expanding a member is similar to performing a Drill Down in-place, without filtering out other members. In the same manner, collapsing an expanded member is similar to performing a Drill Up in-place.
All of the chart types support the Expand/Collapse option, which is available when you right-click (context menu) a data point.
For example, switch to View mode, right-click the Bikes member in this pie/sunburst chart, and then select Expand.
The chart now shows an exploded view of that member but the other members are not filtered out. They are still displayed in order to provide context.
You can continue expanding members, or collapse members using the Collapse option.
Expand and collapse works similarly for a treemap visualization. Just right-click a treemap node and select Expand.
The Bikes node is expanded while leaving the other nodes unchanged.
Right-click the Road Bikes node and click Expand to further expand that node into the next hierarchy level. Or, click Collapse to go back to the original view.
Table visualizations support expand and collapse functionality through the use of expander buttons (triangles) in row header and column header cells. These are toggle buttons that can be used to expand or collapse. Alternatively, you can right-click a cell and use Expand or Collapse from the context menu.
If you have a table visualization that displays multiple row hierarchies, and one of the row hierarchies is single-level, you'll still see expander buttons in the corresponding column, as long as the row hierarchy is not the last one. These expander buttons allow you to collapse the other corresponding hierarchy members even though they belong to a separate hierarchy.
If you don't want this functionality, you can disable it (that is, don't show expanders for single level hierarchy) by going to the table's Properties. Under the HEADERS section, uncheck the Allow Collapsing Separate Hierarchies property.
3. Collapse All
Every hierarchy has an All (Grand total) value above the first level of the hierarchy. You can use the Collapse All option of the context menu to collapse the hierarchy all the way to this level. Alternatively, you can set this to be the default level of the hierarchy.
From the Data Analysis Panel, edit the hierarchy.
Tick the Collapse All checkbox.
Click Submit. The ProductID hierarchy in the visualization will now default to being collapsed to the All value. You can use the Expand All option from the context menu to view the first level of the hierarchy.
- The Collapse All option may cause a pie chart to disappear if Hide Grand Total is selected in the chart properties. You will still be able to use Expand All from the context menu.
- Unknown indicates data outside of the hierarchy. This is not a member of the hierarchy and cannot be expanded. You can see data under Unknown by selecting an additional hierarchy or by changing the hierarchy level.