Blog Post

Power BI Community Blog
1 MIN READ

How to hide visual based upon slicer selection

truptis's avatar
truptis
Icon for Community Champion rankCommunity Champion
3 years ago

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.

Regards,

Truptis

Published 3 years ago
Version 1.0

3 Comments