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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.