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

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

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors