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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Hide slicer based on the value

Hello,

 

I have created a measure that has value = 1, if user does select a row in the table or bubble on the map and value = 0, if the table or map is not selected.

 

Based on this value I would like to hide or make the Tile Slicer not clickable when it's 1, and allow users to change the value in the Slicer when the value is 0.

 

I would be grateful if you could please support me with some clever idea. I tried to display the shape in the background color to hide the Slicer behind it, but I struggle to send it backward to enable the usage of slicer.

 

Thanks!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

I can give you a sample:
Here is my sample data:

vjunyantmsft_0-1714441695179.pngvjunyantmsft_1-1714441701642.png

I don't know what is your measure, So I'll use this measure instead:

Measure = SELECTEDVALUE('Table'[1 & 0])

Then use this DAX to create a measure:

Measure 2 = 
IF(
    [Measure] = 0,
    1,
    0
)

Make the settings as shown in the following figure:

vjunyantmsft_2-1714441983449.png

The final output is as below:

vjunyantmsft_3-1714442007686.png

vjunyantmsft_4-1714442016058.png


Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

I can give you a sample:
Here is my sample data:

vjunyantmsft_0-1714441695179.pngvjunyantmsft_1-1714441701642.png

I don't know what is your measure, So I'll use this measure instead:

Measure = SELECTEDVALUE('Table'[1 & 0])

Then use this DAX to create a measure:

Measure 2 = 
IF(
    [Measure] = 0,
    1,
    0
)

Make the settings as shown in the following figure:

vjunyantmsft_2-1714441983449.png

The final output is as below:

vjunyantmsft_3-1714442007686.png

vjunyantmsft_4-1714442016058.png


Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

MattAllington
Community Champion
Community Champion

Slicers are hard because whatever you put over the top will prevent you clicking the slicer. This article may give you some ideas or inspiration. 
https://exceleratorbi.com.au/show-or-hide-a-power-bi-visual-based-on-selection/



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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