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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
PowerBI__newbie
Frequent Visitor

Dynamic re-ordering by user

Hello, could you please help: how does one create a visual where users will be able to re-order items arbitrarily?

My data structure is:

NameAge
Anne-- some value --
Ben-- some value --
Charlie-- some value --
Dora-- some value --


After slicing, the user ends up with Anne and Charlie, with the default sorting 

 AnneCharlie
Age-- some value ---- some value --

 

The user would like to re-order the table arbitrarily, ie not based on any data.  For example, to end up with 

 CharlieAnne
Age-- some value ---- some value --


This seem to require inputting some (sorting) values that PowerBI can then sort by.

is there a way of achieving this?  

4 REPLIES 4
PowerBI__newbie
Frequent Visitor

Thank you!
I have tried sorting by another column, and it's not what I need, unfortunately.

The number of items is many hundreds; a particular user is likely to filter them down to 5-10.  There's no pre-determined way of ordering them.  To put it differently, a user goes through a fairly complex process when deciding how to order the items, and ultimately the ordering must remain a user's decision.

That Inforiver video looks exactly like what I am trying to achieve ;o)

Alternatively, if you have seen ordering columns in a Sharepoint view setup, something similar could work.

I guess the other option is good old Excel...

Anonymous
Not applicable

Hi, @PowerBI__newbie 

Thank you very much for your reply. In the default table visual, you can only customize the sorting by other columns or measures. You can follow these steps to take the visual you need:

vjianpengmsft_0-1710937377868.png

vjianpengmsft_1-1710937415483.png

vjianpengmsft_2-1710937454473.png

vjianpengmsft_3-1710937484947.png

Hope the above can be helpful to you.

 

 

 

How to Get Your Question Answered Quickly

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards

Jianpeng Li

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

 

 

 

 

 

 

 

Thank you!  I am trying to stick to standard PowerBI, though.

One option I am exploring is:
- creating multiple tables for Name, eg Rank_1_Name, Rank_2_Name, etc.
- creating a separate Age measure for each Rank_X_Name
- adding a slicer for each Rank_1_Name, Rank_2_Name, etc
- using a multi-row card to bring in Age

However, in reality I have around 15 columns in the original table that I need to show (as rows).  With 10 slicers, that means creating 150 measures... a nightmare to maintain! :o(

is there perhaps a more efficient way of achieving this?

In matrix terms, I simply need to join transposed copies of the original data filtered on Name being equal to first-ranked, second-ranked, etc values.  Don't know how to achieve this in PowerBI, though!

Anonymous
Not applicable

Hi, @PowerBI__newbie 

You can use the following method to sort by custom serial number. I created the following sample data:

vjianpengmsft_0-1710908254589.png

First, I copied Education, which I used as a sort:

vjianpengmsft_1-1710908785195.png

I'm creating a new Serial number column using the following DAX expression:

Serial number =
SWITCH (
    [Education],
    "elementary school", 2,
    "university", 1,
    "secondary school", 3
)

vjianpengmsft_2-1710908935592.png

Click sort by column>>select Serial number column:

vjianpengmsft_3-1710909141925.png

Below is a comparison chart, the table on the left is the default sorting, and the table on the right is the custom sorting results:

vjianpengmsft_4-1710909244311.png

In addition, you can click below to learn more ways to customize the sorting. I've provided the PBIX file for this time below, and it would be great if it would help you.

Sort a Column with a Custom Order in Power BI - RADACAD

Custom sort / reorder rows & columns in Power BI - Inforiver

 

 

How to Get Your Question Answered Quickly

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards

Jianpeng Li

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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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