March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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:
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.
Create a relationship between the column in actual table to the custom sort table.
Create a column in Actual table with an expression.
Sort order = RELATED(CustomSortTable[Sort])
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.