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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started


How to hide visual based upon slicer selection

To do this, firstly, we need to create a new measure.

Hide Visuals = IF(SELECTEDVALUE('Table'[Country]) in {"Japan","Kenya"},1,0)

Then we need to select visual 2 and put this Hide Visual measure on visual filter and give condition that if it is zero(attached is the screenshot for reference):


Now, after selecting Japan or Kenya, you can see the below output:


if you want to see all the countries on visual 1 then you can edit interactions from the slicer:



Please hit the thumbs up if you found this post useful. Thanks.




Amazing , will try it for sure.

Great Post!...Thank you...

When I tried doing this for a shape map visual it greyed out the data but it kept the map. Any idea on this?