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
Kalaivani
Helper III
Helper III

how to hide a matrix visual (including headers) when nothing selected from a filter in power bi

I have a matrix visual where I added a filter called ShowVisualCompare so that the matrix values will show up only when ShowVisualCompare =1 

 

Measure : 

ShowVisualCompare =
IF(
    ISFILTERED('Comp Providers Compare'[ProviderName])|| ISFILTERED('Comp Providers Compare'[Clinic Manager]) || ISFILTERED('Comp Providers Compare'[DCO]) || ISFILTERED('Comp Providers Compare'[AACMO]) ||ISFILTERED('Comp Providers Compare'[VP])|| ISFILTERED('Comp Providers Compare'[Org Code]),
    1,
    0
)

But matrix headers are showing up even when the matrix is blank. Here is what am getting. I tried adding the text box with transparency 100 to show a message. But am not able to hide the headers:(

Thanks in advance for any of your help!!!!!

Kalaivani_0-1741291020479.png

 

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@Kalaivani 

I solved a similar problem some time back by using a Card visual on top of the matrix visual. Please check the attached file and adapt accordingly for your case.

In my scenaio, I wanted the visual to be visuble only when Friday is selected.

Fowmy_1-1741298051659.png

 

Fowmy_0-1741298040350.png

 



Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

4 REPLIES 4
WishAskedSooner
Responsive Resident
Responsive Resident

There are a couple of approaches to this requirement:

 

1. If you want to hide certain visuals based on slicer selections, then Bookmarks are probably the simplest method assuming you are not trying to get too tricky.

 

2. Another is to modify your measures to return BLANK() if nothing is selected.

 

Good luck!

Hi @WishAskedSooner Thanks for the suggestion. Actually it has be to shown/hidden based on a condition. The condition checks if any value from a filter is selcted. If so, show the visual else hide the visual. But bookmarks are not helping in this. The problem is am able to hide the visual values but headers are showing up.

Fowmy
Super User
Super User

@Kalaivani 

I solved a similar problem some time back by using a Card visual on top of the matrix visual. Please check the attached file and adapt accordingly for your case.

In my scenaio, I wanted the visual to be visuble only when Friday is selected.

Fowmy_1-1741298051659.png

 

Fowmy_0-1741298040350.png

 



Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Hi @Fowmy Thanks so so much for your suggestion. It is working for me now!!!

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.