Tableau Course
Hierarchies in Tableau
Hierarchies let you drill into your data at multiple levels of detail β from Year down to Month, or from Category down to Sub-Category β with a single click inside any chart.
What a Hierarchy Is
A hierarchy is a set of Dimensions arranged in a parent-to-child order where each level is a more granular breakdown of the level above it. The most familiar example is time: Year contains Quarters, which contain Months, which contain Days. Another common example from Superstore is the product hierarchy: Category contains Sub-Category, which contains individual Product Names.
When a field belongs to a hierarchy, a small + or β drill icon appears on its pill when it is placed on a shelf. Clicking + expands to the next level down. Clicking β collapses back up. This lets you navigate between summary and detail without touching the Data pane or adding new fields manually.
The Built-in Date Hierarchy
Tableau automatically creates a date hierarchy for every Date field in your data. The hierarchy has five levels β Year, Quarter, Month, Week, and Day β and it is always available with no setup required. This is why date fields behave differently from other Dimensions the moment you drag them onto a shelf.
| Hierarchy Level | Example Values | Drill Direction | Typical Use |
|---|---|---|---|
| Year | 2021, 2022, 2023 | β drill to Quarter | Annual performance overview |
| Quarter | Q1, Q2, Q3, Q4 | β drill to Month | Seasonal pattern comparison |
| Month | Jan, Feb β¦ Dec | β drill to Week | Monthly KPI tracking |
| Week | Week 1, Week 2 β¦ | β drill to Day | Weekly operations review |
| Day | 1, 2 β¦ 31 | β bottom of hierarchy | Daily granularity analysis |
Drill Icons on a Shelf β Mockup
Here is what the Columns shelf looks like at different levels of a date hierarchy drill, and what the + and β icons look like on the pill:
Creating a Custom Hierarchy
You can build your own hierarchy from any set of Dimensions that have a natural parent-to-child relationship. In Superstore, Category β Sub-Category β Product Name is the obvious product hierarchy. Creating it takes just a few seconds and makes exploring product data far faster.
Custom Hierarchy β Data Pane Mockup
Removing and Editing a Hierarchy
To edit an existing hierarchy β rename it, reorder levels, or add a new level β right-click the hierarchy folder in the Data pane and select Edit Hierarchy. To remove it entirely, right-click and select Remove Hierarchy. Removing the hierarchy does not delete the underlying fields β they simply move back to their original positions in the Dimensions section as independent fields.
Hierarchies in Dashboards
When a worksheet with a hierarchy is added to a dashboard, the drill icons remain active for viewers. This means your audience can explore the data at different levels of detail interactively β without you needing to build separate charts for each level. For a Category-level chart embedded in a dashboard, a viewer can click + to instantly see the Sub-Category breakdown, then click β to collapse back. This is one of the most powerful interactivity features in Tableau dashboards.
Custom hierarchies are one of the most underused features in Tableau. Many beginners drag Category, Sub-Category, and Product Name onto shelves separately β which works, but produces a cluttered view. A hierarchy gives you the same three levels of detail in a single pill that drills on demand. The rule is simple: whenever you have Dimensions where one naturally contains another β Region contains State contains City, or Division contains Department contains Employee β group them into a hierarchy. Your charts become cleaner and your dashboards become more interactive with almost no extra work.
Practice Questions
1. Which icon appears on a hierarchy pill on the shelf to indicate that you can drill down to the next level?
2. How do you start creating a custom hierarchy in Tableau's Data pane?
3. Which option do you select when right-clicking a hierarchy folder in the Data pane to dissolve the hierarchy without deleting the underlying fields?
Quiz
1. How many levels does Tableau's built-in date hierarchy have, and what are they?
2. What happens to the underlying Dimension fields when you remove a custom hierarchy in Tableau?
3. How do hierarchies improve interactivity for viewers of a published Tableau dashboard?
Next up β Lesson 11: Data cleaning overview β identifying and fixing the most common data quality problems before you build any charts.