Forum Discussion

Jansco's avatar
Jansco
Helper I
7 years ago
Solved

Sorting dates descending in a matrix

Is there any way to sort dates descending in a matrix, where dates are in columns and metrics are in rows?  I know that the option to sort asc or desc is not available when dates are in columns but is there any way around this, for example, by ranking or indexing the dates?

  • Anonymous's avatar
    Anonymous
    7 years ago

    Hi Jansco ,

     

    You can add a table with date and index to use 'sort by column' feature to manually define date sort order based on index fields.

    Then build relationship to raw table on date filed and use custom sort order table data as matrix column.

    Custom Sorting in Power BI


    Regards,

    Xiaoxin Sheng

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Jansco ,

     

    You can add a table with date and index to use 'sort by column' feature to manually define date sort order based on index fields.

    Then build relationship to raw table on date filed and use custom sort order table data as matrix column.

    Custom Sorting in Power BI


    Regards,

    Xiaoxin Sheng