Custom Sorts in Power BI – Step by Step Guide

A table in Power BI displaying product categories with corresponding product names, count of Product ID, and sum of sales, sorted by category from Medium to Low to High.
Screenshot showing the Power BI interface with the Product Categories option selected and the Edit query option highlighted.
Screenshot showing the Power BI interface with the 'Product Categories' table selected in the Queries pane and the 'Duplicate' option highlighted.
Power BI Query Settings window showing the properties of a duplicated table named 'Product Categories (2)'.
Screenshot of Power Query in Power BI showing a table with columns for ProductID, ProductName, and Category, with the option 'Remove Other Columns' highlighted.
Screenshot showing the Power BI interface with the 'Remove Duplicates' option highlighted in the category column menu.
Screenshot of the Power BI interface showing the Add Conditional Column dialog with options to create a custom column. The Category field lists 'High', 'Medium', and 'Low'.
Screenshot of the Power BI interface showing the 'Add Conditional Column' dialog. It includes options to create a new column named 'Sort', where conditions can be defined for the 'Category' field with corresponding outputs.
A Power Query table displaying a custom sort order for product categories: High, Low, and Medium, alongside their numeric sort values.
Diagram showing the relationship between Product Categories and a Categories_ table in Power BI, illustrating the fields Category, ProductID, ProductName, and Sales.
Screenshot showing Power BI column tools with the Category column and the option to sort by the Sort column.
Table displaying product categories with sales data, structured to show custom sorting order: High, Medium, Low.

Similar Posts