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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
thampton
Helper III
Helper III

Filtering Issue - Matrix

I have a multi-row matrix and want to sort in 3 specific ways but do not know if power bi can acheive this. 

 

CATEGORY A                  40 (total)

     APRIL                         30
     MAY                           1

     JUNE                          9

CATEGORY B                  30

     APRIL                         10
     MAY                           19

     JUNE                          1

I would like to sort the categories in alphabetical order, the total orders in descinding order, but keep the months in the correct order. Whenever i sort by the first two, the months are not sorted correctly (even though i have a sort by column setup for this column.) 

 

Thank you!

 

1 ACCEPTED SOLUTION
v-xicai
Community Support
Community Support

Hi @thampton ,

 

You may convert the Matrix visual to Table visual first of all, then click on the Header Column [Category] to adjust it  ASC order (note : you may press Left Click in the meantime to adjust order to opposite order), press Shift + Left Click on the column [Month] to adjust it  ASC order, then press Shift + Left Click on the column [Order sales] to adjust it DESC order. After that, you may convert the Table visual to Matrix visual.

 

For reference:

 

How To Sort A Table Using Multiple Columns In Power BI

 

Best Regards,

Amy 

 

Community Support Team _ Amy

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-xicai
Community Support
Community Support

Hi @thampton ,

 

You may convert the Matrix visual to Table visual first of all, then click on the Header Column [Category] to adjust it  ASC order (note : you may press Left Click in the meantime to adjust order to opposite order), press Shift + Left Click on the column [Month] to adjust it  ASC order, then press Shift + Left Click on the column [Order sales] to adjust it DESC order. After that, you may convert the Table visual to Matrix visual.

 

For reference:

 

How To Sort A Table Using Multiple Columns In Power BI

 

Best Regards,

Amy 

 

Community Support Team _ Amy

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@thampton , make sure month has sort column for the correct order

https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak I have the sort by column set up already. I think the sorting gets messed up when i sort the orders column in descinding order. It also sorts the months by the order total as well. 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.