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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Remove blanks from hierarchy with different length of branches

Hey all,

 

I have a problem removing the empty blanks in my hierachy.

 

My table looks like this:

 

Raw_Table.PNG

 

After some Power Query and Dax functions I managed to create the hierachy:

Build_Hierachy.PNG

 

Now I wanted to create a matrix that shows the ID and the name that belongs to it, however, the matrix has a lot of empty blanks and duplicates:

empty_rows.PNG

 

I already tried

https://www.daxpatterns.com/parent-child-hierarchies/#:~:text=To%20obtain%20a%20browsable%20hierarch...

but this does not work for me since my ID is not an Integer.

 

Furthermore, I cannot use the filter function and just remove the blanks since my hierachy has branches with diffrent lengths and if I would remove the blanks on Level 4, for instance, it kills all branches that do not have a Level 4.

 

I hope someone can help me with this problem since I do not know what to do anymore😅

 

Best Regards 

Philipp

 

1 REPLY 1
harshnathani
Community Champion
Community Champion

Hi @Anonymous ,

 

 

Please watch this video by @ruthpozuelo 

 

https://www.youtube.com/watch?v=MK1jwHz8hoc

 

 

Regards,

Harsh Nathani

Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors