Forum Discussion

Omesh's avatar
Omesh
Helper I
2 years ago
Solved

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

4 Replies

  • 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?

    • barritown's avatar
      barritown
      Solution Sage

      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.