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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Piotr123
Frequent Visitor

category and subcategory in matrix

In my table, not every index has a subcategory. How can I hide the empty rows in a matrix visual?

 

Piotr123_0-1756803546563.png

 

 

 

Piotr123_1-1756803339525.png

 

 

5 REPLIES 5
Piotr123
Frequent Visitor

Thank you

 

It seems this issue might be related to a ragged hierarchy, which could potentially be addressed using a DAX measure based on a parent-child hierarchy. However, I'm not entirely sure how to implement such DAX measure 

MasonMA
Community Champion
Community Champion

@Piotr123 

Please show the expected layout in Excel so that other users can come up with a solution. 

MasonMA
Community Champion
Community Champion

Hello @Piotr123 

 

The most straightforward way would be applying a filter on Subcategory level. 

MasonMA_0-1756826596374.png

 

Hello MasonMA,

Thank you for your response.

When I apply the filter this way, the Index data disappears. My goal is to keep all the data intact and remove only the empty subcategory headers.

Do you have any ideas how to achieve this?

 

MasonMA
Community Champion
Community Champion

Hello @Piotr123 

 

Then i would suggest using Minimal for Style, Tabular for Layout and disabling +/- icon under Row headers. 

MasonMA_1-1756901765842.png

 

 

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors