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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors