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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Umidjon
Frequent Visitor

Sorting matrix table

Hi, 

I am using Power Bi Desktop. I created matrix table. However, I couldn't sort specific column values ( descending order) in matrix table. In rows I have category and sub-category. While I put years to columns and quantity to values field. Do you know any solution for this.

Thanks in advance

 

3 REPLIES 3
Anonymous
Not applicable

Hi @Umidjon ,

You can select the matrix and make the setting as below screenshot:

Sorting matrix table.jpg

Best Regards

amitchandak
Super User
Super User

@Umidjon , Suppose I have Year on column (pivot) 

Then create column like these 

 

Year 1=  [year]

year sort = rankx(All(Table), Table[Year],,desc,dense)

 

now sort year 1 on year sort and use Year 1 in visual (Year will circular dependencies, that is why year 1)

 

https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column

 

In case it is in row, there is option on three dots to sort descending

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi, 

it is not working. I want to sort values in year 2020. How it can be done? Please help. It is important.

Thanks in advance 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors