The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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 Output | Desired Outcome |
1 of 50 | 1 of 50 |
10 of 50 | 2 of 50 |
11 of 50 | 3 of 50 |
2 of 50 | 4 of 50 |
21 of 50 | 5 of 50 |
25 of 50 | 6 of 50 |
3 of 50 | 7 of 50 |
38 of 50 | 8 of 50 |
4 of 50 | 9 of 50 |
40 of 50 | 10 of 50 |
Solved! Go to Solution.
Hi @Omesh,
You can create a calculated column like this:
And then sort your main column by the calculated one:
Best Regards,
Alexander
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.
Hi @Omesh,
You can create a calculated column like this:
And then sort your main column by the calculated one:
Best Regards,
Alexander
Same suggestion.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
56 | |
32 | |
20 | |
17 | |
15 |
User | Count |
---|---|
53 | |
31 | |
30 | |
23 | |
21 |