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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
amaaiia
Super User
Super User

How to hide slicer2 if slicer1 is not selected

Hi,

I have 2 slicers, I want to show slicer2 if slicer1 is filtered. I already have a measure created for this, and I've tried to implement this functionality by using shapes, setting color to white when slicer1 is not filtered, and to transparent when it is.

 

Visually, it works, however, as shape is in front of slicer2, I cannot filter later, because when I click on it, I'm clicking the shape, not the slicer.

 

Any ideas on how to solve this?

 

This is what i have:

Slicer 1 not filtered:

amaaiia_0-1743420846643.png

 

Slicer 1 filtered:

amaaiia_1-1743420887573.png

 

 

1 ACCEPTED SOLUTION
V-yubandi-msft
Community Support
Community Support

Hi @amaaiia ,

Thank you for reaching out to the Microsoft Fabric Community. @ibarrau Thank for your response.

 

Vyubandimsft_0-1743518476191.jpeg

 

if nothing is selected from slicer1 then no background and no values shown in slicer2(above pic)

 

Vyubandimsft_1-1743518476194.jpeg

 

if anything is selected from slicer1 then background and values shown in slicer2(above pic)

 

Measure :

 

Slicer = if(ISFILTERED(T1[c1]),1,0)

 

 

 

If my response resolved your query, kindly mark it as the Accepted Solution to assist others. Additionally, I would be grateful for a 'Kudos' if you found my response helpful.

View solution in original post

2 REPLIES 2
V-yubandi-msft
Community Support
Community Support

Hi @amaaiia ,

Thank you for reaching out to the Microsoft Fabric Community. @ibarrau Thank for your response.

 

Vyubandimsft_0-1743518476191.jpeg

 

if nothing is selected from slicer1 then no background and no values shown in slicer2(above pic)

 

Vyubandimsft_1-1743518476194.jpeg

 

if anything is selected from slicer1 then background and values shown in slicer2(above pic)

 

Measure :

 

Slicer = if(ISFILTERED(T1[c1]),1,0)

 

 

 

If my response resolved your query, kindly mark it as the Accepted Solution to assist others. Additionally, I would be grateful for a 'Kudos' if you found my response helpful.

ibarrau
Super User
Super User

Hi. I don't think there is a default functionallity for this, but you can build the effect with a measure. Check the following picture out:

ibarrau_0-1743424039134.png

 

I have created a measure that checks if the category slicer ISFILTERED. Then return 0 (notfiltered) and 1 (filtered). Pick the second slicer and add the measure at the filter pane visual level filtering the visual when the measure IS 1. That will keep the measure blank unless you filter the first slicer.

I hope that helps,


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

Happy to help!

LaDataWeb Blog

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors