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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.