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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
JP_Helsinki
Frequent Visitor

Remove empty hirearchy levels

HI! Im trying to build a custom Matrix from a table, so that the empty hierarchy levels do not display. 

 

Category 1Category 2Category 3Value
BMWBlackNew1
BMWWhite 2
AudiRedUsed2

 

What Im betting now for the second row is 

- BMW-White-BLANK-2

 

How could I remove the blanks in between from the hierarchies? 

 

Thanks for the help!

1 ACCEPTED SOLUTION
dm-p
Super User
Super User

Hi @JP_Helsinki,

The design pattern you're looking for is a ragged hierarchy, and Power BI doesn't support it natively. It can be managed with a number of additional modelaling changes and some measures to check which level of the hierarchy a value is on.

The following articles are my go-tos whenever I need to implement such a pattern, and should help you out:

Good luck ๐Ÿ™‚

Daniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




View solution in original post

1 REPLY 1
dm-p
Super User
Super User

Hi @JP_Helsinki,

The design pattern you're looking for is a ragged hierarchy, and Power BI doesn't support it natively. It can be managed with a number of additional modelaling changes and some measures to check which level of the hierarchy a value is on.

The following articles are my go-tos whenever I need to implement such a pattern, and should help you out:

Good luck ๐Ÿ™‚

Daniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Users online (25)