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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
cshi
Frequent Visitor

How to show or hide based on the selection of a slicer

Hi,

 

I have a Gauge visualization, showing the difference between target and the actual number. There is a slicer controlling the visualization. However, the Budget indicator in the slicer doesn't have target and actual value. How can I hide the Gauge visualization when I select the Budget indicator in the slicer, while the visualization is shown when select on other indicators in the slicer?

 

Thanks!

1 ACCEPTED SOLUTION
Kishore_KVN
Super User
Super User

Hello @cshi , 
You can do two things to achieve it..
1. You can create bookmarks and pass those actions accordingly. 

2. This will be the best option: 
        Create a measure Highlighting Visual = IF(SELECTEDVALUE(Slicer_Column) = "Budget Indicator",0,1)
  Then drag this measure under the filters on this visual of Gauge Chart and under advanced filtering options use "is" 1. Then this will show the Gauge chart masked when Budget Indicator is selected and it shows data when others are selected.

 

If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!

View solution in original post

1 REPLY 1
Kishore_KVN
Super User
Super User

Hello @cshi , 
You can do two things to achieve it..
1. You can create bookmarks and pass those actions accordingly. 

2. This will be the best option: 
        Create a measure Highlighting Visual = IF(SELECTEDVALUE(Slicer_Column) = "Budget Indicator",0,1)
  Then drag this measure under the filters on this visual of Gauge Chart and under advanced filtering options use "is" 1. Then this will show the Gauge chart masked when Budget Indicator is selected and it shows data when others are selected.

 

If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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