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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
robstewart89
Advocate IV
Advocate IV

Sort by Column in Matrix Visual - not by Row or by Value

Hi, 

 

Thought this would be an easy one but can't find another post on this or a solution anywhere. 

 

I have a Matrix Visual with Product on the rows, Year on the Columns and Sales in Values. See below:

 

 

It is sorted currently on Product ascending and I can change it to sort by Total Sales, which is standard.

 

However, there is no way I can see to sort by 2015, or 2016 and so on. So 2015 would be Product 1, Product 4, Product 2 and Product 3.

 

Is there a reason why this basic functionality isn't there, that I'm missing?

 

I can create measures that calculate the Sales in each of the years and use this as a Table visual but this isn't recommended with a larger data model.

 

Is there maybe even another custom visual out there that can do this?

 

Thanks,

Rob

 

 

 

 

1 ACCEPTED SOLUTION

Hi @robstewart89,

 

Currently it is not possible to meet your requirement in Power BI. There is an idea about that, you can vote it up.

 

https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/13808061-matrix-sort-columns-by-v...

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

7 REPLIES 7
rjhartop
Helper II
Helper II

Hi, this blog post should provide a solution:

 

https://affinityworks.co.uk/power-bi-matrix-column-sort-sorted/

Anonymous
Not applicable

Hi, this solution worked for me! It allows sorting using RANKX function

 

https://alintelligence.tech/sort-matrix-by-selected-columns-with-rankx/

Anonymous
Not applicable

This worked for my situation...

 

In the upper rght hand corner of the Matrix vistal there an an icon for More options.

1. Click on the . . .

2. Select Sort by

3. Chose the column you want to sort by.

 

I hope this works for you.

v-frfei-msft
Community Support
Community Support

Hi @robstewart89,

 

I have vote the idea. Could you please mark the answer as a solution to close the case please? Thanks in advance.

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
CR
Resolver II
Resolver II

Hi @robstewart89

 

I don't know any visual such a matrix capable to do it.

I don't know if it will be suitable for you but I got same tables displaying each month for a lot of references (products) and, when I need to focus on one period, I add a slicer to select it, then I sort on Total.

 

1.png

For me it is more tha a workaround because I really need to display only on part of the matrix.

 

Regards,

CR

 

Hi @robstewart89,

 

Currently it is not possible to meet your requirement in Power BI. There is an idea about that, you can vote it up.

 

https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/13808061-matrix-sort-columns-by-v...

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Thanks @CR and @v-frfei-msft

 

Only 98 votes, needs more! 🙂

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.