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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
ksoroush
New Member

Sorting based on Selection Sequence from Slicer

Hi there,

I am trying to provide a user with an empty table alongside a slicer (vertical list) so that they can select items from the slicer in their desired sequence. Specifically, their first selection from the slicer should appear in the first row of the table, the second selection in the second row, the third selection in the third row, and so on.

Can anyone help me with this?


Thank you!

3 REPLIES 3
Anonymous
Not applicable

Hi @ksoroush ,

Your solution is great, @vicky_ . It worked like a charm! Here I have another idea in mind, and I would like to share it for reference.

I create a measure on my table and here is the DAX code.

vyilongmsft_0-1716862002305.png

Measure = 
VAR _Selected =
    VALUES ( 'Table'[Column1] )
RETURN
    IF (
        MIN ( 'Table'[Column1] ) IN _Selected,
        SELECTEDVALUE ( 'Table'[Column1] ),
        BLANK ()
    )

Then when I use a slicer and it will get what you want.

vyilongmsft_1-1716862087463.pngvyilongmsft_2-1716862109728.png

 

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Yilong,

Thanks for your reply. 

Let me clarify this again. The table and slicer you created follow the row number logic. If I select 3 first and then 2, 2 moves up and takes the previous row. However, I want 3 to take the first row (as it is my first selection from the slicer), followed by 2. My data is in text format, though.

vicky_
Super User
Super User

Use a field parameter - https://learn.microsoft.com/en-us/power-bi/create-reports/power-bi-field-parameters

By default, if nothing in the parameter slicer is selected, then all of them will show in your table, so I'm not sure how to handle that part. But after the user makes the first selection, the rest of it should work as intended.

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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