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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
novel
Frequent Visitor

How to maintain the sequence of slicer selections in Power BI?

Hello Community,
I need help with sequencing slicer selections in Power BI. My goal is to capture the order in which options are selected from a slicer and display them with corresponding numbers to indicate the selection sequence.

 

For example, if the slicer contains the following options: ABC, CDE, EFG, HIG, etc.


And the user selects the options in this order: EFG, ABC, HIG, then the result should display:

  1. EFG
  2. ABC
  3. HIG

I’ve tried using DAX with SELECTEDVALUE and CONCATENATEX, which gives me the selected values, but it automatically rearranges the output in ascending or descending order.

How can I achieve the desired sequence of selections and display it as shown above?

Any guidance or suggestions would be greatly appreciated!

1 REPLY 1
danextian
Super User
Super User

Hi @novel 


I don't think that capturing the order in which visual elements or slicer items are selected is possible. There's no function that does this. DAX is not designed for this type of tasks. CONCATENATEX will concatenate values in alphabetical order by default or based on a custom sort column, but this custom sort column is pre-determined or based on a column virtually calculated.

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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