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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Sorting by latest column values in Matrix

Hi there, 

I'm trying to sort a matrix by the latest column values (ascending/descending), these are Jun-2021 values in my case. Been trying to find a solution to this for quite awhile now but to no successs.. 

 

blueraccoon_2-1625214787377.png

blueraccoon_3-1625214817464.png


Thanks in advance!

 

3 REPLIES 3
v-jingzhang
Community Support
Community Support
DataInsights
Super User
Super User

@Anonymous,

 

Try this solution.

 

1. Create a calculated column equal to your existing [Month Year] column.

 

Month Year Desc Sort = DimDate[Month Year]

 

2. Create a calculated column for sorting. This requires column [Year Month Num], with values such as 202101.

 

Month Year Desc Sort Order = DimDate[Year Month Num] * -1

 

3. In the Data view, sort [Month Year Desc Sort] by [Month Year Desc Sort Order].

 

4. Use [Month Year Desc Sort] in a visual.

 

DataInsights_0-1625263754239.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

Hi @DataInsights 

Thank you for your reply!

Apologies, I think I did not state my question clearly. What I was trying to ask was how does one sort the latest column's values for the whole matrix, e.g. Jun-2021 values for the whole matrix?

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.