Forum Discussion

subhendude's avatar
subhendude
Microsoft Employee
4 years ago
Solved

Sorting Date column in matrix visual

I've a date slicer and a matrix visual to display the data with date as columns. PFA snapshot

I would like to configure the matrix visual in such a way that it always sort the date data in the descending order. Currently it is following ascending order by deafult. Based on the above snapshot, can the matrix visual shows data starting from Monday, Dec 1, 2014 instead of Sunday, Sep 1, 2013?

  • Hi

    I think you need an extra column as index column (Desc) to sort your Date by this extra column

    Use RANKX function in  new calculate column like below:

     

    index = RANKX(table,'Date,,Desc)

     

    then sort your Date by column Index

1 Reply

  • HoangHugo's avatar
    HoangHugo
    Solution Specialist

    Hi

    I think you need an extra column as index column (Desc) to sort your Date by this extra column

    Use RANKX function in  new calculate column like below:

     

    index = RANKX(table,'Date,,Desc)

     

    then sort your Date by column Index