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

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

Reply
Anonymous
Not applicable

Disable particular slicer value based on another slicer selection

I have 2 slicers. 1 Represents MTD/QTD/YTD/Custom and another is comparison slicer PM/PQ/PY.

I wanted to write a measure such that if MTD is selected, comparison slicer will show PM and PY, in case of QTD, only PQ and PY and for YTD and custom, Just PY.
Can it be done on visual filter level? 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Create a measure on the table of the second slicer and then use that in visual level filter

 

Switch(True(),
max(S2[Col]) in {"PM", "PY"} && selectedvalue(S1[col]) = "MTD", 1,

max(S2[Col]) in {"PQ", "PY"} && selectedvalue(S1[col]) = "QTD", 1,

max(S2[Col]) in {"PY"} && selectedvalue(S1[col]) = "YTD", 1,

0)

 

Choose value =1 for this measure in the visual level filter of slicer

Refer

How to filter the slicer of a disconnected table: https://youtu.be/cV5WfaQt6C8

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Thanks @amitchandak , It worked nicely.

amitchandak
Super User
Super User

@Anonymous , Create a measure on the table of the second slicer and then use that in visual level filter

 

Switch(True(),
max(S2[Col]) in {"PM", "PY"} && selectedvalue(S1[col]) = "MTD", 1,

max(S2[Col]) in {"PQ", "PY"} && selectedvalue(S1[col]) = "QTD", 1,

max(S2[Col]) in {"PY"} && selectedvalue(S1[col]) = "YTD", 1,

0)

 

Choose value =1 for this measure in the visual level filter of slicer

Refer

How to filter the slicer of a disconnected table: https://youtu.be/cV5WfaQt6C8

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.