Tableau
Hierarchies
Master drill-down navigation by building hierarchies that let users explore data from the broadest category down to the finest detail.
What Is a Hierarchy?
A hierarchy is an ordered set of dimensions arranged from the most general level at the top to the most specific level at the bottom. In Tableau, hierarchies let you drill down (expand) or drill up (collapse) within a single visualization, revealing progressively finer detail without building new sheets.
Why Hierarchies Matter
Anatomy of a Hierarchy
Built-in vs Custom Hierarchies
| Built-in | Custom | |
|---|---|---|
| Created by | Tableau automatically | You, the analyst |
| Common example | Date: Year → Quarter → Month → Day | Location: Country → State → City |
| Editable? | No (fixed order) | Yes (add, remove, reorder levels) |
| Appears in Data Pane | Under date fields | Wherever you place it |
The Core Rule of Hierarchies
Hierarchy vs Group vs Set
| Hierarchy | Group | Set | |
|---|---|---|---|
| Purpose | Drill down through levels | Combine members into a new category | Define a subset (in/out) |
| Number of fields | Two or more dimensions | One dimension | One dimension |
| Creates new levels? | Yes | No | No |
| Drill-down enabled? | Yes | No | No |
How to Create a Custom Hierarchy
Drill-Down in Action
Example 1: Product Hierarchy
Example 2: Location Hierarchy
Example 3: Date Hierarchy (Built-in)
Reordering and Editing Levels
Once a hierarchy exists, you can modify it at any time. Right-click any field within the hierarchy to access these options:
Hierarchies on Maps
Common Mistakes
Summary Reference
| Concept | Details |
|---|---|
| Definition | Ordered set of dimensions for drill-down |
| Core Rule | One-to-many (parent → children) |
| Create | Right-click dimension → Hierarchy → Create |
| Drill Down | Click + on pill to expand next level |
| Drill Up | Click − on pill to collapse one level |
| Built-in Example | Date: Year → Quarter → Month → Day |
| Custom Example | Category → Sub-Category → Product Name |
| Cannot Include | Measures (only dimensions allowed) |
Question 1 of 5
What is the primary purpose of creating a hierarchy in Tableau?
Question 2 of 5
Which of the following is NOT a valid hierarchy in Tableau?
Question 3 of 5
In Tableau, what happens when you click the + icon on a hierarchy pill placed on the Rows shelf?
Question 4 of 5
Which Tableau feature automatically creates a hierarchy when you add a date field to your data source?
Question 5 of 5
A colleague built a hierarchy: City → State → Country. Drilling down from City shows unexpected results. What is the most likely problem?