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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
mstone3
Helper III
Helper III

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


Follow on LinkedIn
@ 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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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