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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
JRoj
Frequent Visitor

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
v-junyant-msft
Community Support
Community Support

Hi @JRoj ,

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
v-junyant-msft
Community Support
Community Support

Hi @JRoj ,

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.

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.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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