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 August 31st. Request your voucher.

Reply
ptmuldoon
Resolver I
Resolver I

Hide Empty Rows/SubHeader in Matrix

I am following this excellent guide here on creating a P&L report.  https://exceleratorbi.com.au/build-a-pl-with-power-bi/

 

And wondering if it is possibly to hide an empty 'SubHeader'.  In my P&L format I am breaking our labor down into a 2nd subheading.  But this is only used for the Labor.  For the other groups can you hide an unused row/header?    I tried to explain here below in this image and trying to get rid of the empty 'Sub header 2"

 

ptmuldoon_0-1728664429866.png

 

1 ACCEPTED SOLUTION
shafiz_p
Super User
Super User

Hi @ptmuldoon 
Your subheading doesn’t have a name but isn’t empty value. If empty, then it will be automatically removed from matrix visual.

To address this, you can assign a meaningful name using Power Query by replacing the empty value with a name. Alternatively, you can remove such categories using the basic filter option. If you don’t want any category, such as an empty name, simply check all and uncheck the desired one. This will hide all elements under this subheader. See the image below:

shafiz_p_0-1728666280029.png

 

Hope this helps!!

If this answer solved your problem, please accept it as a solution!!

 

 

Best Regards,
Shahariar Hafiz

View solution in original post

2 REPLIES 2
danextian
Super User
Super User

That empty subheader is part of a hierarchy of columns in the context of your matrix viz. Removing that will remove the rows below it as well as they will not be automatically moved to where the empty subheader is. Your table probably looks like this:

danextian_0-1728710590465.png

If you remove blank SubCategory2, you will also remove the related rows from the other columns. If you don't want blank, either you fix that from the source or replace that with another value using M or a custom column that assigns a value to it relative to the values in the other columns.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
shafiz_p
Super User
Super User

Hi @ptmuldoon 
Your subheading doesn’t have a name but isn’t empty value. If empty, then it will be automatically removed from matrix visual.

To address this, you can assign a meaningful name using Power Query by replacing the empty value with a name. Alternatively, you can remove such categories using the basic filter option. If you don’t want any category, such as an empty name, simply check all and uncheck the desired one. This will hide all elements under this subheader. See the image below:

shafiz_p_0-1728666280029.png

 

Hope this helps!!

If this answer solved your problem, please accept it as a solution!!

 

 

Best Regards,
Shahariar Hafiz

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