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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Need help: How to get Year in a Matrix Visual colum to display the current year first ex: 2024, 2023

I have a matrix visual with dataset, this is an example

Rows is State
Column is Year
Values is Sum formula

Hello!

I'm trying to figure out how to get the matrix visual to sort the column by year in the order of latest year to earliest year. 2024, 2023, 2022, 2021 but I'm not getting any where with it. Is this a limitation with Power BI?? I have tried a custom column that adds a dash in front of the year but that doesn't look right and I've tried similar by adding a custom column in the transformation... it all does not look good looking like this -2024 | -2023 | -2024.

The image below is what is happening today, the red indicate how I want the columns to be sorted by latest to earliest year 2024 | 2023 | 2022 | 2021.  I do not want a solution that places a dash in front of the year, I know it's a workaround but not ideal for my situation. I appreciate ANY and all help. Thank you in advance!

jamaicawi_0-1705454339342.png

 

1 ACCEPTED SOLUTION
PijushRoy
Super User
Super User

Hi @Anonymous 

I hope you already created columns for -2024 | -2023 | -2022
Just change your year column sort by option to a negative column (follow the image below) (I am using custom FY, you can use same for Calendar Year)

PijushRoy_0-1705457981869.png


Let me know if it works

If your requirement is solved, please make sure to MARK AS SOLUTION and help other users find the solution quickly. Please hit the LIKE button if this comment helps you.

Thanks
Pijush
www.MyAccountingTricks.com 
https://www.youtube.com/MyAccountingTricks

 




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





View solution in original post

3 REPLIES 3
PijushRoy
Super User
Super User

Hi @Anonymous 

I hope you already created columns for -2024 | -2023 | -2022
Just change your year column sort by option to a negative column (follow the image below) (I am using custom FY, you can use same for Calendar Year)

PijushRoy_0-1705457981869.png


Let me know if it works

If your requirement is solved, please make sure to MARK AS SOLUTION and help other users find the solution quickly. Please hit the LIKE button if this comment helps you.

Thanks
Pijush
www.MyAccountingTricks.com 
https://www.youtube.com/MyAccountingTricks

 




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





Anonymous
Not applicable

Hi @PijushRoy  - yes I already have a custom column for -2024 | -2023 | -2022

I hope this explains the challenge but your solution doesn't work for me. It may work for someone else but not what I'm looking for. I want to find a way to get Year 2024 to show as 2024 in the visual and to come before previous years. See the screenshot. 

jamaicawi_0-1705503638723.png

Anonymous
Not applicable

Hi @Anonymous , did you sort this issue out yet please?

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors