Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
SDigital007
New Member

Custom Sort as in Excel

Hi,

I use Power BI to create invoices for our clients. I need the ability to sort my entire table using 3 columns as in Excel: Column 1: Customer Id from A to Z, Column 2: Products by Supplier A-Z, Column 6: Prices from high to low. 

I cannot find the equivalent to this Excel function in Power BI. Any ideas?

2 REPLIES 2
Anonymous
Not applicable

If you perform the sortation at the power query level, one at a time, in the order listed below, you should end up with the correct result.

Thank you for the suggestion but it doesn't work. Sorting at the second level scrambles the 1st, undoing the order of customer IDs. What I am looking for is a way to sort by level: 1st customer ID, then for each customer ID, sort by product type, then for each product type, sort by price.

The end goal is to create line items for customer invoices.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.