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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

How to hide the matrix if nothing is selected on Map visual

Hi All,

On the report page, i have a Map and Matrix visuals. The functionality is, initially when the page loads, we see only the Map visual, but when we click on any location/Dot in the Map, the matrix appears with filtered results.

Output.png

This functionality is being achieved by creating a custom column and placed it in the table visual and set the filter condition to is 1.

Filter = IF(CALCULATE(DISTINCTCOUNT(Filtercolumn),ALLSELECTED(filtercolumn))=1,1,2)

 

Now the issue is, using above approch we can hide the matrix, but can't hide the Row header. In my case the row header is "City" and my page initially look like below.(This is the situaltion when we haven't click on any Dot in Map visual)

 

Output.1png.png

Please let me know how can we resolve this.

 

Thanks

 

2 REPLIES 2
ChandeepChhabra
Impactful Individual
Impactful Individual

I am not sure if Dynamic headers are possible in Power BI, but you can play a trick

  1. Make a card visual 
  2. Put it on top of your "City" Header in the matrix
  3. In the card visual drag the following measure
Dummy = IF(HASONEVALUE(Data[City]),"City","")

This will show a blank when nothing is selected on the Map

 

Anonymous
Not applicable

Hi @ChandeepChhabra,

 

Thanks for your reply.

I have tried your solution. It gives me  value "City" on the Card Visual, if nothing is selected on Map. When we make a selection, Card visual gets hidden and all the Matrix populates as expected.

Please advise.

Thanks

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors