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
mcosta1988
New Member

Matrix table sorting by column name

Hi everyone,

 

 

I am creating a simple matrix table showing my total sales per month.

 

I would like to sort the companies by sales when I click on the month column.

 

For example, when I click on the March column, it should order the company and show it in an ascendent order, the same way it works for the TOTAL and COMPANY column. I realized that the columns are not giving these options for the Matrix table.

 

Any idea how I should do this?

 

mcosta1988_0-1658894076852.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @mcosta1988,

You can create a custom sort table with field value and index, then you can build relationships between two tables and use the new field on matrix column to achieve custom sort effect:

Custom Sorting in Power BI 
Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @mcosta1988,

You can create a custom sort table with field value and index, then you can build relationships between two tables and use the new field on matrix column to achieve custom sort effect:

Custom Sorting in Power BI 
Regards,

Xiaoxin Sheng

amitchandak
Super User
Super User

@mcosta1988 , in Matrix visual you can not sort on column value(pivot), You can sort on rows and values/measures or values/measures total

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

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.