cancel
Showing results for 
Search instead for 
Did you mean: 
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



Power BI Features || Datamarts: https://youtu.be/8tskWsJTEpg || Field Parameters : https://youtu.be/lqF3Wa1FllE?t=70
Time Intelligence Decoded : https://youtu.be/aU2aKbnHuWs&t=145s || 50+Power Query List Functions : Learn Power Query List
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Dashboard of My Blogs !! Connect on Linkedin !! Subscribe to my youtube Channel !!
Want To Learn Power BI | Beginners !! Advance Concepts !! Power BI For Tableau User !!

Helpful resources

Announcements
September Update

Check it Out!

Click here to learn more about the September 2022 updates!

Power BI Show episode 9

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power BI Dev Camp Session 25

Ted's Dev Camp - August 25, 2022

Watch Session 25 of Ted's Dev Camp.

Top Solution Authors