01 / 20

Tableau
Hierarchies

Master drill-down navigation by building hierarchies that let users explore data from the broadest category down to the finest detail.

Tableau

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

★ Faster Exploration
Click the + / − icons in a viz to drill into data without dragging new pills onto shelves.
★ Cleaner Data Pane
Related dimensions are grouped under one expandable heading, reducing visual clutter.
★ Guided Analysis
Viewers follow a logical path: broad questions first, then narrow details, ensuring consistent storytelling.

Anatomy of a Hierarchy

Category Sub-Category Sub-Category Product Product Product Product Level 1 Level 2 Level 3 Drill Down → More Detail

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

Country State A State B State C 1 : many ✓ Valid: each State belongs to exactly 1 Country ✕ Invalid: Product → Customer (many-to-many) One customer can buy many products; one product is bought by many customers

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

1
Open the Data Pane. Locate the dimension you want as the highest level (e.g., Category).
2
Right-click → Hierarchy → Create Hierarchy. Give the hierarchy a descriptive name.
3
Drag additional dimensions into the hierarchy in order from broadest to most specific.
4
Reorder if needed by dragging fields up or down within the hierarchy group.
5
Test it: Drag the hierarchy onto a shelf and click the + icon to drill down.

Drill-Down in Action

STEP 1: Category Level Technology Furniture Supplies + STEP 2: Sub-Category Level Phones Machines Copiers Acc. − collapse Click + to drill down to the next level Click − to collapse back up DATA PANE ▾ Product Hierarchy Category Sub-Category Product Name

Example 1: Product Hierarchy

Category Sub-Category Sub-Category Product Name Product Name Product Name e.g., Technology → Phones → iPhone 15 3 levels: broadest to most granular

Example 2: Location Hierarchy

Country State / Region City Postal Code Level 1 Level 2 Level 3 Level 4 ↓ Drill Down

Example 3: Date Hierarchy (Built-in)

YR Year QTR Quarter MO Month DAY Day → → → 2024 → Q3 → September → Sep 15 Tableau creates this hierarchy automatically for every date field You can also set it to use ISO weeks or fiscal calendars

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:

↕ Reorder
Drag a field up or down inside the hierarchy to change the drill order.
+ Add Field
Drag any dimension from the Data Pane into the hierarchy group to add a new level.
✕ Remove Field
Right-click a field → "Remove from Hierarchy" to take it out without deleting it.

Hierarchies on Maps

COUNTRY VIEW 3 countries → Drill STATE VIEW 8 states Geographic drill-down splits bubbles into finer regions Works with filled maps, symbol maps, and map layers

Common Mistakes

✕ Wrong Level Order
Placing City above State breaks the one-to-many logic. Drill-down produces confusing or empty views.
✕ Many-to-Many Fields
Linking Product → Customer creates fan-out issues. Hierarchies require strict parent-child relationships.
✕ Measures in Hierarchy
Only dimensions can be hierarchy members. Dragging a measure (e.g., Sales) into a hierarchy will not work.

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?