Forum Discussion

HenryJS's avatar
HenryJS
Post Prodigy
5 years ago
Solved

Reversing Date Axis Matrix

Hi all,   Is it possible to sort date axis in a matrix from newest to oldest?        
  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi HenryJS ,

    For my test ,  to avoid "circle", you could creata a new table using the following formula:

    Table 2 =
    SUMMARIZE (
        'Table',
        'Table'[Date],
        'Table'[Type],
        'Table'[Value],
        "index", RANKX ( ALL ( 'Table' ), 'Table'[Date],, DESC )
    )

    Then  select Date column ,sort by Index column, so that  dates in calculated table could be in descending order in Matrix 

    Here is the pbix file.

     

    Did I answer your question ? Please mark my reply as solution. Thank you very much.
    If not, please upload some insensitive data samples and expected output.

    Best Regards,
    Eyelyn Qin