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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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.

 

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...

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.

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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