Forum Discussion
Custom Sorting in PowerBI?
- 9 years ago
You can create a table like following one and create relationship with the original table.
Then create a calculated column in original table with following formula.
Column = RELATED( Table2[ID] )
At last, select the Type column and make it sorted by above created column.
Best Regards,
Herbert
For clear view please refer to the below images Before Sorting and After Sorting why the values are changing to 100% for each category.
Please note i have exactly followed the same procedure as mentioned in the solution.
Before Sorting
After Sorting
Hi there,
It seems like when calculating percentage for each category after sorting, you will have to make a slight change to your formula to also aggregate based on the new column created in original table.
for example:
Here earlier I was only aggregating on
I hope that helps.
here are screenshots of changes before and after: mark that am grade pos is calulated column using related:
resultant visual:
after change in formula:
resultant visual: