Custom Sorting with Power BI
Custom sorting in Power BI can significantly enhance the clarity and impact of your data visualizations. However, users often encounter several challenges when setting up custom sorts. Hereโs a look at some of the common hurdles and how to overcome them:
Step 1
Create a Custom Table with all the category either manually in Power Query or read from source.
Create a new column beside and provide the number in the order you want to arrange.

Step 2
Create a relationship between the column in actual table to the custom sort table.
Step 3
Create a column in Actual table with an expression.
Sort order = RELATED(CustomSortTable[Sort])
Step 4
Select the column you want to sort, and a โColumn Toolsโ menu bar will appear at the top. Now Select the โSort by columnโ and select the sort order column.

Read more...