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
Anonymous
Not applicable

Sort Matrix by year

Hey all, 

 

I have a matrix with premium, loss and profit as rows and years as column. 

For some reason it is sorted ascending by year by default, but I would like to have it sorted descending by year. Is that possible to do?

I can only see the possibilities to sort it by premium, profit or loss.

 

Thanks, 

Susanne

7 REPLIES 7
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

Click on the ellipse on the right-top of the visual and select "Sort descending" as below:

Capture.PNG 

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Dear @v-yuta-msft ,

 

interestingly, it doens't show year as a possibility to sort it. 

So far my format is:

                     2017             2018             2019             2020 

premium

loss

profit

 

I have obtained it by using year as columns and then switch "show in rows" on for my values premium loss and profit.

 

The only way to solve it is to use year as rows and then switch off "show in rows " for my values. Then its possible to sort year descending.

              premium      loss  profit

2020

2019

2018

2917

 

But is there a way to do this without having to switch the axes to keep year as columns?

E.g. with a measure or with another visualisation?

 

KR 

Susanne

Anonymous
Not applicable

If a column can be introduced in the data that will assign the Highest year with the lowest value like:

 
yearsort by
20174
20183
20192
2020

1

 

Then year column can be sorted by Sort by column like below:

sort by.JPG

 

This will automatically rearrange the matrix from Highest year to lowest year.

 

Let me know in case of any queries or if it works for you.

Anonymous
Not applicable

Dear @Anonymous ,

 

thanks for your support, that means I first have to create the sort column before importing the data into power bi, I guess?

I will give it a try 😃

 

KR

Susanne

Anonymous
Not applicable

Yes thats correct.

 

Let me know if it worked for you.

 

Thanks,

Satarupa

VasTg
Memorable Member
Memorable Member

@Anonymous 

 

Click the year header to again and the triangle will show which order it is sorted.

 

If it helps, mark it as a solution

Kudos are nice too

Connect on LinkedIn
MartynRamsden
Solution Sage
Solution Sage

Hi @Anonymous 

 

You should be able to simply click on the column heading to change the sort order from asc to desc.

 

Best regards,
Martyn


If I answered your question, please help others by accepting it as a solution.

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.