The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi All,
I'm having difficulties setting up custom sorting in the new dashboard, which is quite bizarre as a solution that has worked before now does not.
I'm attaching .pbix file where I try to set up two solutions, but both are not working.
https://drive.google.com/file/d/1KLeD8fJdQcx_8MOLlYGACC5fdazY8W_t/view?usp=sharing
Data:
Desired result:
Solution 1 - Relationship with a Sorted Table:
The sorting is not visible in the chart based on the main table. This method worked successfully before.
Solution 2 - Sort by Merged Column:
I encounter this error: "We can't sort the 'action_grade' column by 'Action Grading Index.1'. There can't be more than one value in 'Action Grading Index.1' for the same value in 'action_grade'..."
Which is confusing as 'Action Grading Index' has unique values for values of action_grade.
I get the same error, when I create 'Action Grading Index' via the custom column and not by merge.
Please help to find a solution to custom sorting that works.
In advance, thank you for any solutions or workarounds.
Solved! Go to Solution.
You can create a new table with Enter Data option from Home ribbon, Enter your Days overdue grouping values in one column and enter valeus 1,2,3... for second column and name it as index and sort the table based on index column.
In your visual, add the days overdue filed from this new table and remove the old one. Sort your visual based on the days overdue column and it will be sorted in the way you want.
Let me know if you need more assistance.
Hi,
Thank you a lot for a quick reply.
Your suggestion has helped. It looks like I missed the step where I should replace 'Days Overdue Grouping' from the main table with values coming from the related table.
I'm pleasantly surprised that this also works for the dashboard I'm working on, where dimensions for the charts are coming from Fields Parameters. I just replaced references in the parameter from the main table to the index tables.
Just out of curiosity; do you know why the second solution isn't working?
You can create a new table with Enter Data option from Home ribbon, Enter your Days overdue grouping values in one column and enter valeus 1,2,3... for second column and name it as index and sort the table based on index column.
In your visual, add the days overdue filed from this new table and remove the old one. Sort your visual based on the days overdue column and it will be sorted in the way you want.
Let me know if you need more assistance.