Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Charlotte_1234
New Member

How to create hierarchy based on column values - then show other columns within it

Hi 
I have a table similar to this (its longer but the layout is similar)

NameNumberNo. Of VisitsLevel1NameLevel2NameLevel3Name
Test13Testnullnull
Test Nested1.12TestTest Nestednull
Test 229Test 2nullnull
Test 2 Nested2.13Test 2Test 2 Nestednull
Test 2 Sub-Nest2.1.15Test 2Test 2 NestedTest 2 Sub-Nest
Test 2 Sub-Nest 22.1.28Test 2Test 2 NestedTest 2 Sub-Nest 2

 

I've managed to get it to display in a Matrix sort of, but there are blank nested items which are obvs generated from the nulls in Level2Name and Level3Name.

Is there a way to get rid of these Blank Values?  I have already set the rows to not show blank data but that hasnt done anything, and any measure I have tried seems to over filter and remove anything that doesnt have a Level3Name?

Also, when I add the No. of Visit column I want the value to show next to each item, but it seems to skew onto a blank row which isnt what I'm after (see the screenshot below).

This data comes from a Microsoft Project export and my user wants it to look similar with the nested items etc.


Charlotte_1234_0-1777564287243.png


Any help on this would be much appreciated.

1 ACCEPTED SOLUTION
mickey64
Super User
Super User

For your reference.

mickey64_0-1777567353419.png

 

View solution in original post

3 REPLIES 3
mickey64
Super User
Super User

For your reference.

mickey64_0-1777567353419.png

 

Thanks Mickey64 - worked perfectly!

Natarajan_M
Solution Sage
Solution Sage

Hi @Charlotte_1234 

You can create hierarchies using the custom hierarchies .

https://learn.microsoft.com/en-us/analysis-services/tabular-models/create-and-manage-hierarchies-ssa...

Right click on the column -> create hierarchy -> adding the first level (Highest level) -> second level-? goes on 

Create hierarchies 

Natarajan_M_0-1777565993270.png

 

Natarajan_M_1-1777566019923.png

 

Natarajan_M_2-1777566055722.png


Year hierarchy :

Natarajan_M_3-1777566089563.png

 


Thanks 
If you found this helpful, please consider giving it a kudo and marking it as the accepted solution — it goes a long way in helping others facing the same issue.

For more Power BI tips and discussions, let’s connect on LinkedIn:
https://www.linkedin.com/in/natarajan-manivasagan

Cheers!


Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.