How to Present Hierarchical Data in Tableau

Cody Schneider••9 min read

Hierarchical data can feel like a tangled web, but in Tableau, it's a powerful way to tell a compelling story. Instead of presenting a jumble of information, you can guide your audience from a high-level overview all the way down to a granular detail with just a few clicks. This article will walk you through creating and visualizing hierarchical data in Tableau, turning complex datasets into clear, interactive dashboards.

GraphedGraphed

Build AI Agents for Marketing

Build virtual employees that run your go to market. Connect your data sources, deploy autonomous agents, and grow your company.

Watch Graphed demo video

What Exactly Is Hierarchical Data?

Hierarchical data is information organized in a tree-like structure, where items have parent-child relationships. Think of a classic company org chart: a CEO is at the top (the parent), with VPs reporting to them (the children). Those VPs, in turn, become parents to the directors who report to them. This pattern continues down the line.

This structure is incredibly common in business data. Here are a few relatable examples:

  • Geography: Country > State > City > Postal Code
  • Product Categories: Electronics > Computers & Laptops > Laptops
  • Time: Year > Quarter > Month > Day
  • Organizational Structure: Division > Department > Team > Employee

The main benefit of recognizing and using hierarchies is the ability to easily perform a "drill-down" analysis. You can start by looking at your total sales by country, then click a plus sign to see the breakdown by state, and then click again to see it by city. This interactive experience allows users to explore the data on their own terms, making your dashboards far more engaging and insightful than a flat, static report.

Free PDF · the crash course

AI Agents for Marketing Crash Course

Learn how to deploy AI marketing agents across your go-to-market — the best tools, prompts, and workflows to turn your data into autonomous execution without writing code.

Setting Up Your First Hierarchy in Tableau

Before you can build amazing visualizations, you need to tell Tableau how your fields are related. Creating a hierarchy is a simple drag-and-drop process directly within the Data pane on the left side of your workspace. Let's use the classic product category example from Tableau's Sample - Superstore dataset.

The goal is to create a Product hierarchy that flows from Category → Sub-Category → Product Name.

Step 1: Locate your dimensional fields.

First, connect to your data source. In the Data pane on the left, you'll see your dimensions and measures. Identify the fields you want to group together. For this example, we need 'Category', 'Sub-Category', and 'Product Name'.

Step 2: Create the hierarchy by dragging a child onto a parent.

This is the key step. You start from the bottom or middle of the hierarchy and drag it onto its parent. Drag the 'Sub-Category' field directly on top of the 'Category' field in the Data pane. A dialog box will appear asking you to name the hierarchy. Let's call it "Product Hierarchy."

Step 3: Add more levels to the hierarchy.

You can now see 'Product Hierarchy' in your Data pane, with 'Category' at the top and 'Sub-Category' nested underneath it. To add the next level, simply drag the 'Product Name' field into this new hierarchy group, placing it beneath 'Sub-Category'.

Make sure the order is correct from top to bottom (most general to most specific).

  • Category (Top Level)
  • Sub-Category (Mid Level)
  • Product Name (Lowest Level)

That's it! The hierarchy is now defined. When you drag the 'Product Hierarchy' (or just the 'Category' pill, which now represents the top of the hierarchy) onto the Rows or Columns shelf, you'll notice it has a small + symbol next to its name. This indicates you can expand it to reveal the next level. Let's start putting it to use.

3 Common Ways to Visualize Hierarchical Data

Now that your data is structured, you can use several chart types to bring it to life. Here are three of the most effective methods, from simple to more advanced.

GraphedGraphed

Build AI Agents for Marketing

Build virtual employees that run your go to market. Connect your data sources, deploy autonomous agents, and grow your company.

Watch Graphed demo video

1. Bar Charts with Drill-Down

This is the most direct and often the most effective way to present hierarchical data. It provides clear, easy-to-read comparisons at every level and the 'drill-down' experience is incredibly intuitive for any user.

When to Use It:

Use a drill-down bar chart when you want to compare a measure (like sales, profit, or quantity) across different categories and allow users to explore the components of each category. It's perfect for dashboards where clarity and ease of use are the top priorities.

How to Build It:

  1. Drag your new hierarchy ('Product Hierarchy' in our case) onto the Rows shelf. Initially, it will only show the top level: 'Category'.
  2. Drag a measure, such as 'Sales', onto the Columns shelf. You'll now have a simple bar chart showing sales for each product category (Furniture, Office Supplies, Technology).
  3. Notice the 'Category' pill on the Rows shelf has a + symbol. Click it.
  4. The chart instantly expands, breaking down each category bar into its underlying sub-categories. You can now see sales for 'Bookcases' and 'Chairs' under 'Furniture', for example.
  5. Click the + on the 'Sub-Category' pill to drill down even further to the 'Product Name' level. Clicking the - symbol on any pill will collapse that level, taking you back up the hierarchy.

This simple interaction transforms a basic report into an exploratory tool without building multiple separate charts.

2. Treemaps

A treemap uses a series of nested rectangles to visualize hierarchical data as a proportion of a whole. The size of each rectangle represents one measure (like sales), while the color can represent another (like profit ratio). It's an excellent way to spot patterns and outliers across multiple levels at a glance.

When to Use It:

Treemaps are ideal when you have a large number of items in your hierarchy and want to understand their relative contributions. For instance, you could quickly see that while one product sub-category has the most sales (biggest rectangle), a much smaller one is actually more profitable (darker color).

How to Build It:

  1. Using the "Show Me" panel is the fastest way here. First, select the fields you need. Hold Ctrl (or Cmd on Mac) and click 'Product Hierarchy' and 'Sales'.
  2. In the "Show Me" panel on the top right, select the treemap icon.
  3. Tableau will generate a treemap. 'Sales' will automatically be applied to the Size Mark, and 'Product Hierarchy' will be on the Text Mark.
  4. To make it more insightful, drag 'Profit' to the Color Mark. Now, you not only see the size of sales but also the color-coded profitability.
  5. Like the bar chart, the pills for your hierarchy (now on the Marks card) will have + symbols. Clicking the + on 'Category' will split each main rectangle into smaller ones representing the sub-categories.

This gives users a dense, bird's-eye view of performance breakdowns across the entire product catalog.

Free PDF · the crash course

AI Agents for Marketing Crash Course

Learn how to deploy AI marketing agents across your go-to-market — the best tools, prompts, and workflows to turn your data into autonomous execution without writing code.

3. Sunburst Charts

A sunburst chart, also known as a radial treemap, is a more stylized visualization that looks like a multi-layered donut or pie chart. The center represents the top-level of the hierarchy, and each subsequent outer ring represents the next level down.

When to Use It:

Sunburst charts are best for presentation-focused dashboards where you want to show the proportional breakdown of a whole across several levels in a visually engaging way. While they can be harder to read for precise comparisons (unlike a bar chart), they are very effective at illustrating the composition of categories.

How to Build It:

Building a sunburst chart is an advanced technique in Tableau as there isn't a one-click option. It typically involves creating dual-axis pie charts. Here's a simplified conceptual overview:

  1. First, you create a calculated field for a central point on a view. Place two instances of this on the Rows shelf.
  2. You use the first Marks card to create a pie chart for your top-level hierarchy field (e.g., 'Category'). You'd drag 'Category' to Color and 'Sales' to Angle.
  3. On the second Marks card, you do the same thing but for the next level down (e.g., 'Sub-Category').
  4. Then, you combine them using the 'Dual Axis' feature and adjust the sizes so the Sub-Category pie chart forms a ring around the Category one.

While more complex to set up, the result can be a striking visual for executive summaries or infographics.

Best Practices and Pro Tips

Knowing how to build the charts is one thing, making them effective is another. Keep these tips in mind when presenting hierarchical data.

  • Limit Hierarchy Depth: Don't overwhelm your user. A hierarchy three or four levels deep is typically the practical limit for a single visualization. Any deeper and the chart becomes too cluttered to be useful.
  • Use Effective Tooltips: The drill-down is great, but tooltips provide context without adding visual noise. Customize your tooltips to show key metrics for the selected item, like sales, profit ratio, and quantity on order — all in the hover-over text.
  • Provide Clear Instructions: A first-time user might not know they can drill down. Add a simple text title or subtitle like, "Click the '+' on Categories to explore Sub-Categories" to guide them.
  • Choose the Right Chart for the Job: Match the chart type to your purpose. For analytical dashboards where users need to make precise comparisons, stick with the Drill-Down Bar Chart. Use Treemaps for spotting high-level patterns in large datasets. Save sunbursts for high-level presentations.

Final Thoughts

Mastering hierarchies in Tableau is a simple way to take your dashboards from static reports to interactive analytical tools. By grouping related dimensions, you empower your users to ask and answer their own questions, drilling down from a broad overview to specific details on their path to insights.

This process of building interactive dashboards is powerful, but it involves several manual steps inside a complex tool. We built Graphed because we wanted to turn that hours-long setup process into a 30-second conversation. Once your data sources are connected, you can simply ask a question - like, "create a bar chart showing Sales broken down by product category and sub-category" - and get an interactive, real-time visualization instantly. It lets you and your team move straight to the insights, without having to be a data viz expert first.

Related Articles