Forum Discussion

mcosta1988's avatar
mcosta1988
New Member
4 years ago
Solved

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?

 

 

  • Anonymous's avatar
    Anonymous
    4 years ago

    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

2 Replies

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

  • Anonymous's avatar
    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