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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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 

@Piotr123 

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

MasonMA
Memorable Member
Memorable Member

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?

 

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors