Forum Discussion

a68tbird's avatar
a68tbird
Resolver II
4 years ago
Solved

Matrix Sort by Column Header Date Descending

This is a popular topic on the boards, I know, and I've read many different solutions, however nothing seems to be working for me and it's got me stumped.   My matrix has a Date Hierachy for column...
  • v-yalanwu-msft's avatar
    4 years ago

    Hi, a68tbird ;

    I tested it , product as rows, sales as values, date as  column;

    If the column is Date Hierarchy, sort by column is not work ,so we should change the different column about year and month.

    create a rank column.

    Column =RANKX('financials',YEAR('financials'[Date]),,DESC,Dense)

     

    The final output is shown below:

     


    Best Regards,
    Community Support Team_ Yalan Wu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.