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
Moniek
Resolver I
Resolver I

Date table descending year

Hi, I have creating a date table with calenderauto. And now, I was made a matrix, with rows months and colums for years. But I want to sort the years descending, by default they are sorting by ascending. Can anyone tell my how to sort the years descending. Thank you!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Moniek , For Matrix I doubt still option is not added. Option not added bar/stacked legends in Nov 2021.

 

You need to create these columns in table/date table

Year 1 = [Year])

Year Order  = rankx('Date', [Year],,desc,dense)

 

Mark Year sort as sort column of the year and use that

 

How to Create Sort Column and Solve Related Errors:
https://www.youtube.com/watch?v=KK1zu4MBb-c

 

Sort Month.png

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

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Moniek , For Matrix I doubt still option is not added. Option not added bar/stacked legends in Nov 2021.

 

You need to create these columns in table/date table

Year 1 = [Year])

Year Order  = rankx('Date', [Year],,desc,dense)

 

Mark Year sort as sort column of the year and use that

 

How to Create Sort Column and Solve Related Errors:
https://www.youtube.com/watch?v=KK1zu4MBb-c

 

Sort Month.png

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

Thanks, your youtube helps me a lot!!!!! 

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.