Tutorial Gateway

  • C
  • C#
  • Java
  • Python
  • SQL
  • MySQL
  • Js
  • BI Tools
    • Informatica
    • Talend
    • Tableau
    • Power BI
    • SSIS
    • SSRS
    • SSAS
    • MDX
    • R Tutorial
    • Alteryx
    • QlikView
  • More
    • C Programs
    • C++ Programs
    • Go Programs
    • Python Programs
    • Java Programs

Create Hierarchy in Power BI

by suresh

Power BI Hierarchies provide you with the drill down action to the BI report. Let me show you how to Create hierarchy in Power BI reports with an example.

How to Create Hierarchy in Power BI

To demonstrate the creation of hierarchies in Power BI, we are going to use the table that we created in the Combine Multiple Tables article.

Create Hierarchy in Power BI 1

There are a couple of ways to create a hierarchy

The first approach to Create Hierarchy in Power BI

To create a new hierarchy in Power BI, Drag and drop one field on to the other. It automatically creates a Hierarchy for you. To demonstrate the same in Power BI, we are dragging the product subcategory onto the product category field.

Create Hierarchy in Power BI 2

Now you can see the newly created hierarchy.

Create Hierarchy in Power BI 3

The first approach to add fields to a Power BI hierarchy

Drag and drop the required field to the newly created hierarchy. Let me drag the color field.

Create Hierarchy in Power BI 4

Now you can see the Color field inside the Hierarchy.

Create Hierarchy in Power BI 5

The second approach to add fields to a Power BI hierarchy

Please select the field that you want to add (let me select product), and right-click on it will open the context menu. Select the Add to Hierarchy, and then select the Hierarchy name (Product Category Hierarchy)

Create Hierarchy in Power BI 6

Now you can see the Product under the hierarchy.

Create Hierarchy in Power BI 7

Change Hierarchy Levels in Power BI

Please be careful while configuring the hierarchy levels. For instance, if you have the State column above the Country, then Level 1 is State, level 2 is the Country.

Please select the field that you want to change the position or level. Next, right-click on it and select the Move Up option (or move down) from the context menu. Alternatively, you drag and drop the field at the required position.

Create Hierarchy in Power BI 8

Now you  can see the product at the third position

Create Hierarchy in Power BI 9

Rename Hierarchy in Power BI

Please select the Hierarchy that you created, and right-click on it will open the context menu. Select the Rename option from the context menu. Alternatively, you can double-click on the hierarchy name

Create Hierarchy in Power BI 10

Let me rename it as the product hierarchy

Create Hierarchy in Power BI 11

Now you can see the new name

Create Hierarchy in Power BI 12

Delete Hierarchy in Power BI

Select the Hierarchy that you delete, and right-click on it open the context menu. Please select the Delete option from the context menu.

Create Hierarchy in Power BI 13

Click on the Delete button to confirm the delete operation.

Create Hierarchy in Power BI 14

The second approach to create Hierarchy in Power BI

Please select the filed that you want to use in Hierarchy, and right-click on it will open the context menu. Select the New Hierarchy option from the context menu.

Create Hierarchy in Power BI 15

It creates a new hierarchy for you.

Create Hierarchy in Power BI 16

Let me add a few more fields

Create Hierarchy in Power BI 17

Delete Fields from Hierarchy

Please select the field that you want to remove or delete from the hierarchy. Next, right-click on it and Delete option from a context menu.

Create Hierarchy in Power BI 18

Click the delete button to delete the Color field from the hierarchy.

Create Hierarchy in Power BI 19

You can see the same in the below screenshot

Create Hierarchy in Power BI 21

Again, we added the Color field and renamed the hierarchy as the Product Information.

Create Hierarchy in Power BI 21

Placed Under: Power BI

  • Install Power BI Desktop
  • Connect Power BI to SQL Server
  • Add Rename and Duplicate Pages
  • Connect to Multiple Excel Sheets
  • Get Excel Data to Power BI
  • Get Text File Data to Power BI
  • Load Data from Multiple Sources
  • Remove Power BI Table Columns
  • Create Power BI Bins
  • Power BI Joins
  • Change Column Data Types
  • Combine Multiple Tables
  • Power BI Clusters
  • How to Enter Data into Power BI
  • How to Format Dates in Power BI
  • Create Power BI Groups
  • Create Power BI Query Groups
  • Create Power BI Hierarchy
  • Power BI Pivot Table
  • Power BI Unpivot Table
  • Rename Power BI Table Names
  • Rename power bi column names
  • Split Columns in Power BI
  • Remove reorder power bi column
  • Power BI Area Chart
  • Format Power BI Area Chart
  • Power BI Bar Chart
  • Format Power BI Bar Chart
  • Power BI Clustered Bar Chart
  • Clustered Column Chart
  • Create a Power BI Card
  • Format Power BI Card
  • Create Power BI Multi-Row Card
  • Format Power BI Multi-Row Card
  • Power BI Column Chart
  • Format Power BI Column Chart
  • Power BI Donut Chart
  • Format Power BI Donut Chart
  • Power BI Funnel Chart
  • Format Power BI Funnel Chart
  • Power BI Heat Map
  • Power BI Line Chart
  • Format Power BI Line Chart
  • Line & Clustered Column Chart
  • Format Line & Clustered Column
  • Line & Stacked Column Chart
  • Format Line & Stacked Column
  • Power BI Matrix
  • Format Power BI Matrix
  • Power BI Table
  • Format Power BI Table
  • Add Data Bars to Power BI Table
  • Add alternate Table Row Colors
  • Power BI Pie Chart
  • Format Power BI Pie Chart
  • Power BI Ribbon Chart
  • Format Power BI Ribbon Chart
  • Power BI Treemap
  • Format Power BI TreeMap
  • Power BI Scatter Chart
  • Format Power BI Scatter Chart
  • Power BI Stacked Area Chart
  • Power BI Stacked Bar Chart
  • Format Stacked Bar Chart
  • Power BI Stacked Column Chart
  • Format Stacked Column Chart
  • Power BI Waterfall Chart
  • Format Power BI Waterfall Chart
  • Power BI 100% Stacked Bar Chart
  • 100% Stacked Column Chart
  • Create a Power BI Map
  • Format Power BI Map
  • Power BI Filled Map
  • Format Power BI Filled Map
  • Power BI Basic Filters
  • Power BI Slicer
  • Power BI Top 10 Filters
  • Power BI Drill through Filters
  • Power BI Filters on Measures
  • Power BI Advanced Filters
  • Power BI Report Level Filters
  • Power BI Page Level Filters
  • Power BI Calculated Columns
  • Add Conditional Column
  • Create Power BI Custom Column
  • Power BI Calculated Measures
  • Power BI Calculated Tables
  • Power BI DAX String Functions
  • Power BI DAX Math Functions
  • DAX Trigonometric Functions
  • Power BI DAX Date Functions
  • Power BI DAX Logical Functions
  • Power BI DAX Agg. Functions
  • Power BI Dashboard Introduction
  • Power BI Dashboard Settings
  • Power BI Dashboard Actions
  • Delete Power BI Dashboard
  • Subscribe Power BI Dashboard
  • Add Web Content to Dashboard
  • Add Image to Dashboard
  • Add video to power bi dashboard
  • Add Title to Power BI Dashboard
  • Pin Workbooks to Dashboard
  • Register to Power BI Service
  • Connect to Power BI Service
  • Create Power BI Workspace
  • Share Power BI Workspace
  • Create a Report in Workspace
  • Rename a Report in Workspace
  • Rename a Dataset in Workspace
  • Quick insights in Power BI
  • Get insights in Power BI
  • Publish power bi desktop report
  • Upload Power BI Workbooks
  • Upload Excel Files to Dashboard
  • Edit Power BI App
  • View Published Power BI App
  • Publish Power BI App
  • Share Power BI Dashboard
  • Share Power BI Workspace
  • Share Power BI Report
  • Power BI Q&A
  • Power BI Q&A Advanced
  • Customize Q&A Suggestions

Copyright © 2021 · All Rights Reserved by Suresh

About Us | Contact Us | Privacy Policy