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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
mstone3
Helper II
Helper II

DAX Measure to Return Information on Slicer Selection/Slicer Status

Hello,  I'm trying to write a DAX measure that will assist the report user in understanding what has been selected on a slicer.  I would like the DAX measure to return 1 of 4 possible conditions:

 

If all slicer options are selected, return "All selected"

If no slicer options are selected, return "Make a selection"

If one slicer option is selected, return "One selected"

If more than one (but not all) options are selected, return "Multiple selected" 

 

I've tried to get there with a combination of IF statements, SELECTEDVALUE, ISFILTERED, HASONEVALUE, etc. but can't get the logic to work right.

 

Thank you!

4 REPLIES 4
Jihwan_Kim
Super User
Super User

Picture1.png

 

Link to the sample pbix file 

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Thank you very much - this was very helpful!

Greg_Deckler
Super User
Super User

@mstone3 See if this helps: The Most Amazing, Mind Blowing Dynamic Slicer Titl... - Microsoft Power BI Community


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Thank you - this was very helpful!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors