Creating Hierarchies in Power BI

by | Updated December 1, 2017 | Business Intelligence, Power Platform

One of the cool features in Power BI is that it allows you to create your own hierarchies. When a visual has a hierarchy, it enables the ability to drill down for additional relevant details. For example, you might have a visualization that shows the product hierarchy with revenue and you want to drill down on a specific product that is under-performing. By drilling down, you’re able to see the elements that make up the product and pin-point exactly what product or products are causing the decrease in revenue.

In this post we’ll cover how easy it is to create hierarchies in Power BI using the example above.

Levels that comprise a hierarchy in Power BI.
1) Before we build a hierarchy, we’ll need to know the levels that comprise the hierarchy. In our example, the levels are Category -> Subcategory -> Product -> Product Image URL.

2) After we know the hierarchy levels, we’ll use simple drag/drop techniques to create the hierarchy. Since Category is our first level in the hierarchy, let’s look for Subcategory and place it right on top of Category. Notice that there is a new item was created called “Category Hierarchy.”

Use drag and drop techniques to create hierarchies in Power BI.

3) Finally, we’ll drag and drop Product, and Product Image URL on the Category Hierarchy we just created and rename Category Hierarchy to Product Hierarchy by right-clicking Category Hierarchy and selecting “Rename.”

Renaming hierarchies in Power BI.
4) Now that our hierarchy is created, we can see it in action. In the top right-hand corner, we have a bar chart named “Sales Amount by Category” where the drill actions will take place. There are two methods to drill up/down. First, you can right-click on a bar and drill down or you can turn drill down on. By turning drill down on, we’ll be able to drill down on a level by clicking on it rather than doing a right click. My personal preference is to turn drill down on.

Two methods to drill up/down in Power BI.

5) To turn drill-down on, click on the chart and click on the down arrow in the top right-hand corner of the chart. Once enabled, the down arrow will have a black background.

6) We see that “Arts and Crafts is our lowest performer in terms of sales. To drill down on that item, simply click on it and the chart will immediately go to the next level.

Click on the lowest performer in Power BI to drill down to the next level.

7) To drill back up you can right-click any bar and select “Drill Up” and the report will go back up one level.

To drill up on level on Power BI, right-click on any bar and select "drill up."

Drilling up/down allows us to slice and dice our data to uncover patterns and anomalies. In this short demonstration, we saw how easy it is to create a hierarchy in Power BI and enable drill up/down functionality.

Related Posts

2 Comments

  1. Kendy

    Are you able to integrate Row Level Security into the Hierarchy and still drill up and down? Can you please explain?

  2. Taylor Valnes

    Hello Kendy,

    I reached out to the blog writer and he responded with the following, and he also sent an image which I’ve sent to you directly as well.
    You can still drill up and down when row level security is implemented. The easiest way to do it is to create security at the required level and implement security just like you would without a hierarchy.

    Regards,
    Taylor

Submit a Comment

Your email address will not be published. Required fields are marked *

Upcoming Events

october

07oct12:00 pm1:00 pmThe Three Paths to Business Central from Dynamics GP

08oct11:00 am12:00 pmConfab with Stoneridge - Livestream - The Vision and Strategy of Microsoft Business Systems

14oct10:00 am10:30 amThe Modern Manufacturer - Managing Complex Cost Modeling

14oct12:00 pm12:30 pmGenerating Custom Inspection or Process Forms

19octAll Day22Stoneridge Connect Fall 2020

22oct11:00 am12:00 pmConfab with Stoneridge - Livestream - Stoneridge Connect Recap

28oct10:00 am10:30 amThe Modern Manufacturer - Engineering Change Management: Introduction of NEW Functionality for Manufacturers Using Dynamics 365

november

18nov10:00 am10:30 amThe Modern Manufacturer - Tears and Trauma of MRP

About Stoneridge
Stoneridge Software is a unique Microsoft Gold Partner, with emphasis on partner. With specialties in Microsoft Dynamics 365, Microsoft Dynamics AX, Microsoft Dynamics NAV, Microsoft Dynamics GP and Microsoft Dynamics CRM, we focus on attracting the most knowledgeable experts in the field to our team, and prioritize delivering stellar solutions with maximum impact for your business. At Stoneridge, we are deeply committed to your results. Each engagement is met with a dedicated team, ready to provide thorough, tailored, and expert service. Based in Minnesota, we intentionally “step into your shoes,” wherever you are. We focus on what you care about, and develop trusting, long-term relationships with our clients.

Subscribe To Our Blog

Sign up to get periodic updates on the latest posts.

Thank you for subscribing!

X