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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
lnofficial
Regular Visitor

Preserve Order of elements as typed/choosen in Slicer (PowerBI)

Hi everyone,

I’m currently working on a Power BI dashboard where users need to select multiple labels and the order of selection or typing matters because it defines the priority of releases.

 

I have a slicer/filter that allows selecting multiple values such as:

eDR11.1
eDR12.1
eDR16.1
eDR17.1

Users can either:

  • click the values in the slicer, or

  • type/paste a list of releases.

     

     

Selected FixVersions =
VAR SelectedVals =
VALUES ( TestPlan_ReleaseLabelDim[Label] )

RETURN
CONCATENATEX (
SelectedVals,
TestPlan_ReleaseLabelDim[Label],
" | "
)

 


Problem

Power BI does not preserve the order in which the user selects or types the values.

 

Example:

User selects:

eDR12.1
eDR11.1

Expected result:

eDR12.1 | eDR11.1

Actual result returned by Power BI:

eDR11.1 | eDR12.1

lnofficial_1-1773216309977.png

Is there any way in Power BI to:

  1. Preserve the order in which items are selected in a slicer, or

  2. Capture the sequence of typed values in a filter/search box, or

  3. Access the selection order via DAX or Power Query?

 

2 ACCEPTED SOLUTIONS
danextian
Super User
Super User

hi @lnofficial 

This isn't currently possible. Power BI does not remember the order in which slicer selections are made. The values if concatenated are sorted in ascending or descending order or by another value.

 





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.

View solution in original post

Hi @lnofficial , Thank you for reaching out to the Microsoft Community Forum.

 

Even if the rank needs to be defined dynamically, the core limitation still remains, Power BI slicers only return the set of selected values, not the order in which they were selected or typed. That interaction sequence isn’t stored anywhere in the model, so DAX or Power Query cannot retrieve it. Because of that, the priority cannot be calculated from the slicer itself. If the order matters, capture it explicitly, for example by letting the user assign a priority/rank through a parameter or a small disconnected table and then use that priority column to control the ordering in CONCATENATEX.

View solution in original post

6 REPLIES 6
v-ssriganesh
Community Support
Community Support

Hello @lnofficial,

Hope everything’s going great with you. Just checking in has the issue been resolved or are you still running into problems? Sharing an update can really help others facing the same thing.

Thank you.

 

v-ssriganesh
Community Support
Community Support

Hello @lnofficial ,

We hope you're doing well. Could you please confirm whether your issue has been resolved or if you're still facing challenges? Your update will be valuable to the community and may assist others with similar concerns.

Thank you.

 

cengizhanarslan
Super User
Super User

Slicers do not preserve or expose selection sequence. If the sequence matters, you need to model it explicitly as a priority/rank rather than relying on slicer selection order.

_________________________________________________________
If this helped, ✓ Mark as Solution | Kudos appreciated
Connect on LinkedIn | Follow on Medium
AI-assisted tools are used solely for wording support. All conclusions are independently reviewed.

In my case, I would like to model/set the rank as the user chooses. i.e., there is no static rank for the labels. I will have to calculate them dynamically too.

Hi @lnofficial , Thank you for reaching out to the Microsoft Community Forum.

 

Even if the rank needs to be defined dynamically, the core limitation still remains, Power BI slicers only return the set of selected values, not the order in which they were selected or typed. That interaction sequence isn’t stored anywhere in the model, so DAX or Power Query cannot retrieve it. Because of that, the priority cannot be calculated from the slicer itself. If the order matters, capture it explicitly, for example by letting the user assign a priority/rank through a parameter or a small disconnected table and then use that priority column to control the ordering in CONCATENATEX.

danextian
Super User
Super User

hi @lnofficial 

This isn't currently possible. Power BI does not remember the order in which slicer selections are made. The values if concatenated are sorted in ascending or descending order or by another value.

 





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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.