Visual Data Hierarchies: From Overview to Detail

Business questions often begin with an overview and then move toward specific contributors. A merchandise manager might compare product categories before examining subcategories and individual products. Visual Data Hierarchies give this investigation a deliberate structure. In Tableau, you arrange related dimension fields into an ordered path that readers can expand or collapse as their questions become more detailed.

Choose meaningful levels

A visual data hierarchy is an ordered arrangement of dimension fields that supports movement from broader groupings to finer detail. The fields define the levels; their values identify the members at each level. Category is a field, while Furniture might be one of its members.


Order the levels by business containment, from broad to detailed.


Three dimension fields progress from Category through Subcategory to Item ID.


For a conventional nested hierarchy, each identified child belongs to one parent within the relevant reporting context. A category can contain several subcategories, and a subcategory can contain several products. Confirm these relationships from the business definitions and data rather than assuming that related field names establish containment.


Proposed arrangement

Interpretation

Design judgment

Category → Subcategory → Item ID

Products sit within progressively broader classifications

Suitable when the assignments are consistently nested

Item ID → Subcategory → Category

Individual products precede their broader classifications

Reversed for an overview-to-detail investigation

Category → Sales Channel

Categories can use several channels, and channels can sell several categories

A cross-classification rather than a conventional nested path


Repeated labels need context. Two categories might each contain a subcategory named Accessories. The repeated name does not necessarily indicate an error: Category together with Subcategory may identify the intended group. Keep the relevant parent fields in the view when names are not globally unique.

Build and navigate the path

For a standard relational data source in Tableau, drag one dimension field onto another in the Data pane, name the hierarchy, and add the remaining fields. Reorder its fields into the intended broad-to-detail sequence. This lesson concerns these custom hierarchies rather than hierarchies supplied by multidimensional cube sources.


Start a worksheet with the broadest field. Drill down means exposing the next hierarchy level to show more detailed groupings. Use the hierarchy field's + control to expand and its − control to drill up. Expanding retains the broader context while adding detail; collapsing removes a displayed finer level.



The hierarchy definition and the worksheet's displayed dimensions are separate. Creating the hierarchy does not itself expand every worksheet. Likewise, placing a lower-level field into a view does not guarantee that all its parent fields are present.

Interpret detail without changing the story

Drilling changes the grouping shown in the visualization. For example, category sales can be broken into subcategory sales. With the same underlying records, unchanged restrictions, and the same sum aggregation, the finer groups partition the original sales total. They do not represent additional sales created by expansion.



Check the data at the reporting context you intend to use. An outlet that changes districts over time may require a different interpretation from an outlet with conflicting district assignments in one snapshot. Also check whether the displayed measure can be combined across children: an overall average is not generally the sum of child averages.


What to remember

  • Arrange related dimensions from broad groups to finer detail.
  • Preserve parent context when child labels repeat.
  • Expand to inspect detail and collapse to restore an overview.
  • Validate business relationships separately from creating the hierarchy.

Example: Explore a maintenance service network

A maintenance company uses Tableau Desktop with a relational data source containing Division, Branch, Unit ID, Service Channel, and Labour Hours. For the current reporting snapshot, every branch belongs to one division and every unit belongs to one branch. Branch names and unit IDs are globally unique. Each work record belongs to one unit.


Branches handle work through both Contract and On-demand service channels, and both channels operate across branches. A manager wants to compare divisional labour hours, inspect branches within divisions, and then inspect units within branches.


For all parts, keep the same work records and use SUM(Labour Hours). You do not need to calculate any totals.


a) Specify and create an appropriate custom hierarchy named Service Network.


The requested investigation begins with divisions, moves to their branches, and ends with individual units. The field order is therefore Division → Branch → Unit ID. Each step follows a supplied parent–child relationship.


In the Data pane, drag Branch onto Division and name the hierarchy Service Network. Add Unit ID, then check and adjust the field order to match the proposed path. Creating this structure organizes the existing fields; it does not reassign units or branches.


b) The worksheet initially shows Division on Rows and SUM(Labour Hours) on Columns. Describe the displayed grouping after expanding one level, after expanding another level, and after collapsing the unit level.


Initially, the grouping is Division, so each division's labour hours are aggregated together. Expanding Division with its + control adds Branch: the view now shows branch contributions within their divisions.


Expanding Branch adds Unit ID. The grouping becomes Division, Branch, and Unit ID, exposing unit contributions within each branch. Collapsing the displayed unit level returns to Division and Branch.


The underlying work records and sum aggregation remain fixed. Because every work record belongs to one unit, the unit contributions partition branch hours, and the branch contributions partition division hours. The expansion reveals detail rather than adding work records.


c) A colleague proposes inserting Service Channel between Division and Branch. Evaluate this proposal for the manager's requested investigation.


An intermediate parent level should give each identified branch one parent at that level for this conventional nested path. The stem states that branches handle both ________ and ________ work, so a branch would occur under both channel values.


Tableau could still arrange these fields in that order, but the result would describe channel-specific branch contributions rather than a simple division-to-branch containment structure. It would change the investigation's meaning. Retain Division → Branch → Unit ID for the manager's request and examine Service Channel as a separate classification when that question is needed.

A hospital network assigns each hospital to one operating region and each ward to one hospital. An analyst wants readers to begin with regional activity and progressively inspect individual wards in Tableau. Which hierarchy order best supports that investigation?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

An analyst creates a custom Tableau hierarchy named Location using Country, Province, and Store ID from a relational data source. The hierarchy is no longer needed. The analyst selects Remove Hierarchy in the Data pane. What happens?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

An analyst collapses the Location hierarchy using the arrow beside its name in Tableau's Data pane. The worksheet still displays Country, Province, and City detail. She wants to return the worksheet to a broader level using its hierarchy controls.


Complete the instructions using plus or minus for the icon and up or down for the direction: click the appropriate icon on a hierarchy field in the worksheet to drill .

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Extra Practice