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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors