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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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

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

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

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.