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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply

Hide visual base on slicer selection

I have a gauge visual, and I'm trying to hide the visual based on the slicer selection. 

I have three measures which all work: 

 

Measure 1:

Check filtered = ISFILTERED(Query1[% Metric Name]) -- Returns true when any selection is made

 

Measure 2:

Message = IF([Check filtered], "", "You must first select an indicator name from the slicer to see the results")
 
Measure 3:
Hide visual = IF([Check filtered], 1, 0)
 
When adding the Hide Visual measure to the visual filters, it does not let me change the items from is less than to is
daniellamoore29_0-1695994246761.png

 

what can I do to resolve this please?

 

 
1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @daniellamoore29 
If you can put these filtering conditions directly to the measures of your gauge.
Something like :

Test metric = if(ISFILTERED('Table'[Metric Name]),sum('Table'[Metric Value]),"")
 
Ritaf1983_0-1696041963436.png

You can download the pbix from This link 

 

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

 
Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

3 REPLIES 3

@Ritaf1983 , my card visual colour is #00C0B5, how do I make this transparent so when slicer selected, it disappears?

 

daniellamoore29_0-1696247344439.pngdaniellamoore29_2-1696247361068.png

 

@daniellamoore29  
I must admit that I don't know 🙂
I work only with white backgrounds all others are not efficient for effective data visualization.
For example, our brain needs to work hard to read white on blue...

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Ritaf1983
Super User
Super User

Hi @daniellamoore29 
If you can put these filtering conditions directly to the measures of your gauge.
Something like :

Test metric = if(ISFILTERED('Table'[Metric Name]),sum('Table'[Metric Value]),"")
 
Ritaf1983_0-1696041963436.png

You can download the pbix from This link 

 

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

 
Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors