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!View all the Fabric Data Days sessions on demand. View schedule
Hi Team,
Greetings!!
I came across a requirement, wherein I have a slicer with the values as ABC, XYZ, DEF. Now there are two things that are required.
1. In the slicer, the value DEF must be always selected by default. (I hope this can be partially achieved by Chiclet Slicer)
2. If any user deselects the value DEF and selects ABC and XYZ, then I need to display a message on a multi row card that only two values can be selected and one of them has to be 'DEF' and also the visualisation should show as blank.
Note: I need to select only two values and not all three togther.
May I request you to kindly assist me on this.
Thanks,
Ani91
Solved! Go to Solution.
Try this:
Slicer Verify = VAR slicerCount = COUNTROWS(Slicer) VAR containsDEF = CONTAINS(Slicer,Slicer[Value],"DEF") RETURN IF(slicerCount = 2 && containsDEF,"Selection OK","Please pick 2 and must contain DEF")
Try this:
Slicer Verify = VAR slicerCount = COUNTROWS(Slicer) VAR containsDEF = CONTAINS(Slicer,Slicer[Value],"DEF") RETURN IF(slicerCount = 2 && containsDEF,"Selection OK","Please pick 2 and must contain DEF")
Hi Greg
This worked amazingly. Thank you so much.
Just a further question, On incorrect selection, i.e. if the selection does not contain DEF then the visualizations should go blank. Can this be achieved?
Thanks.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!