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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Omesh
Helper I
Helper I

Hi All, Need Help in sorting

Is there a way to implement custom sorting in Power BI, especially when dealing with text values and hierarchical columns in a matrix visualization, since the default sorting options may not provide the desired outcome?

Current OutputDesired Outcome 
1 of 501 of 50
10 of 502 of 50
11 of 503 of 50
2 of 504 of 50
21 of 505 of 50
25 of 506 of 50
3 of 507 of 50
38 of 508 of 50
4 of 509 of 50
40 of 5010 of 50
1 ACCEPTED SOLUTION
barritown
Super User
Super User

Hi @Omesh,

You can create a calculated column like this:

barritown_0-1697806670095.png

And then sort your main column by the calculated one:

barritown_1-1697807092357.png

Best Regards,

Alexander

My YouTube vlog in English

My YouTube vlog in Russian

 

View solution in original post

4 REPLIES 4
Omesh
Helper I
Helper I

I already have a table with three columns (as mention). I want to sort all three columns within that table according to specific criteria, and then I need to display the sorted data in a separate table visualization. However, I'm currently encountering an error message that says, "There cannot be more than one value in the 'rank' for the same value in the 'current output.' Please select a different column for sorting or adjust the data in the 'rank' column."

How can I address this issue and sort all three columns simultaneously in a same table?

Hi @Omesh,

Your 'rank' column shouldn't contain duplicates. Probably you should work on creation of a new rank column without duplicates. As an option, you can create an index column in Power Query based on your rank column and link sorting to it.

barritown
Super User
Super User

Hi @Omesh,

You can create a calculated column like this:

barritown_0-1697806670095.png

And then sort your main column by the calculated one:

barritown_1-1697807092357.png

Best Regards,

Alexander

My YouTube vlog in English

My YouTube vlog in Russian

 

Same suggestion.

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

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