What Are Hierarchies in Power BI?

Cody Schneider••8 min read

When you're building reports in Power BI, it's easy for your data "Fields" pane to become a long, unwieldy list of columns. This article will show you how to use hierarchies to organize that data into logical levels, making your reports cleaner, your data model more intuitive, and your visualizations infinitely more powerful for exploration.

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 a Hierarchy in Power BI?

Think of a Power BI hierarchy like a set of Russian nesting dolls for your data. It's a structured relationship between two or more columns that have a logical parent-child connection. This simple structure unlocks one of the most powerful interactive features in Power BI: drill-down and drill-up capability.

Instead of having separate fields for year, quarter, month, and day, you can group them into a single "Date Hierarchy." When you use this hierarchy in a chart, your users can start with a high-level view (like sales per year) and then "drill down" to see the breakdown by quarter, month, or even day, all within the same visual.

Common examples include:

  • Time Hierarchy: Year → Quarter → Month → Day
  • Geography Hierarchy: Country → State → City → ZIP Code
  • Product Hierarchy: Product Category → Product Subcategory → Product Name

By creating a hierarchy, you're not just tidying up your field list, you're building a guided analytical path for anyone interacting with your report, allowing them to explore the data from summary to detail with a single click.

Why Should You Use Hierarchies?

Spending a few minutes setting up hierarchies pays off massively downstream. It dramatically improves the quality, usability, and analytical power of your reports for both you and your end-users.

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.

Transforms Static Charts into Interactive Tools

The primary benefit of a hierarchy is that it enables drill-down functionality natively. Without it, if you wanted to see sales by year, then by quarter, then by month, you would have to create three separate charts. A hierarchy lets you do all of that exploration inside a single visual. A bar chart showing annual sales can be instantly clicked to reveal the quarterly performance within a specific year, then the monthly performance within a specific quarter. This turns your static report into a dynamic analytical dashboard where users can answer their own follow-up questions.

Creates a Cleaner, More Intuitive User Experience

Look at your Fields pane. Is it starting to feel cluttered? Imagine having individual columns for product_category, product_group, subcategory_name, and product_sku all listed separately. By combining these into a "Product Hierarchy," you condense four fields into one single, tidy, expandable item. This simple organization makes it much easier for you or other report builders to find the right data fields, reducing confusion and speeding up development time.

Helps Organize and Manage Your Data Model

As your reports grow in complexity, a well-organized data model is essential. Hierarchies are a foundational-level tool for enforcing that organization. They logically group related columns together, making the relationships within your data tables immediately obvious. When someone else (or your future self) picks up your report, they can quickly understand how different fields relate to each other without having to dig through your data model diagram.

How to Create a Hierarchy in Power BI: A Step-by-Step Guide

Creating hierarchies is a straightforward process you can do in just a few clicks. The best place to create and manage them is in the Model View or the Data View in Power BI Desktop, as this tends to be less cluttered than the main Report View.

Let's walk through building a classic "Location Hierarchy" using sample sales data that contains Country, State, and City columns.

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

Step 1: Open the Model or Data View

On the left-hand side of Power BI Desktop, click on the icon for either Model View (looks like a relationship diagram) or Data View (looks like a table). You will see your data tables listed in the Data pane on the right-hand side.

Step 2: Start the Hierarchy with the Top Level

The order is important. You always start with the highest, most general level. In our geographic example, that's the Country field.

Find the Country field in your table. Right-click on it and select "Create hierarchy."

Power BI will create a new object called "Country hierarchy" and automatically add the Country field as its first level. You’ll be able to tell it's a hierarchy by the unique icon next to its name.

It's always a good practice to rename it. Right-click the new hierarchy and select "Rename." Let's call it "Location Hierarchy" for clarity.

Step 3: Add the Lower Levels

Now, let's add the subordinate levels. The key here is dragging and dropping in the correct order.

  1. Find the State field in your data list.
  2. Click and drag the State field directly on top of your newly created "Location Hierarchy" and release it.
  3. Find the City field.
  4. Click and drag the City field on top of the "Location Hierarchy," making sure to drop it below the State field.

The order of dropping determines the level. Once you're done, you can expand the "Location Hierarchy" to see its structure: Country at the top, followed by State, then City.

Quick Tip: Drag-and-Drop Method

Alternatively, you can skip the right-click step. Simply drag a child field (like State) directly onto a parent field (like Country) in the Data pane. Power BI notices this relationship and will automatically prompt you to create a new hierarchy. This is often an even faster way to get started.

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.

How to Use Your New Hierarchy in Visualizations

Once your hierarchy is built, using it is the easiest part.

Let's create a simple column chart to see it in action.

  1. Go back to the Report View canvas.
  2. Select a Clustered Column Chart from the Visualizations pane.
  3. Instead of dragging individual fields, drag your entire "Location Hierarchy" object from the Data pane into the "X-axis" well of the chart.
  4. Drag a numeric value, like Total Sales, into the "Y-axis" well.

Your chart will initially display total sales by country, which is the highest level of our hierarchy.

Now, look at the top-right corner of the chart visual. You'll see a set of icons specifically for interacting with hierarchies:

  • The Forked Arrow (Expand a level): Clicking this will move every element in your chart down to the next level. So, if you're viewing countries, clicking this will show all states from every country combined.
  • The Single Down Arrow (Enable drill-down mode): This is the most popular option. Once enabled, you can click on a specific data point to explore it. For instance, you could click on the "USA" column, and the chart will update to show you the sales breakdown only for the states within the USA.
  • The Up Arrow (Drill up): This takes you back up one level in the hierarchy.

By using these simple controls, your report viewers can move from a 10,000-foot view of global sales performance right down to city-level details without ever leaving the chart.

Best Practices for Smarter Hierarchies

Building hierarchies is easy, but building effective hierarchies that people love to use requires a bit of thought.

  • Keep Them Logical and Intuitive: This can't be stressed enough. A hierarchy of Year → State → Product Category makes no logical sense and will only confuse your users. Ensure the relationships follow a natural, expected progression.
  • Don’t Go Too Deep: While you can technically add many levels, practicality is key. A hierarchy with more than four or five levels can become cumbersome to navigate. If you need more detail, consider creating a separate, dedicated report page.
  • Use Clean Naming Conventions: Rename your hierarchies and the underlying fields to be business-friendly. "Location Hierarchy" is better than "country hierarchy," and the field state_prov should be renamed to "State/Province." Clarity is crucial for adoption.
  • Leverage a Date Table: While Power BI has an auto-date/time feature that creates built-in date hierarchies, it's a widely accepted best practice to create a dedicated date table in your model. This gives you complete control over your time hierarchies (e.g., to create fiscal year or week-based hierarchies) and powers more advanced time intelligence calculations.

Final Thoughts

Power BI hierarchies are a simple yet incredibly effective feature for organizing your data model and building rich, interactive reports. They turn static charts into dynamic analytical tools, allowing users to peel back the layers of their data and discover insights for themselves. Taking the time to set up logical hierarchies is a fundamental step toward building professional-quality dashboards.

We know that even with features like hierarchies, mastering traditional BI tools takes a serious time commitment with a steep learning curve. That's why at Graphed we created a tool that automates this entire process. Instead of manually creating hierarchies and configuring visuals, you can simply connect your data sources — like Google Analytics, Shopify, and Salesforce — and then ask questions in plain English. Prompt a query like, "Show me my Shopify revenue broken down by country, then city," and we'll instantly generate the interactive, drillable chart for you, saving you from the hours of setup and training.

Related Articles