Forum Discussion

Giada_Togliatti's avatar
Giada_Togliatti
Post Patron
5 years ago
Solved

problem with sorting in a matrix

Hi,

In a matrix I have a date and another field in columns, other 2 fields in rows and a measure in value.

If I try to sort by date I don't have the option, why?

If I put date in rows I can but if it's in columns and I add fields on rows I can't

 

thank you

  • themistoklis's avatar
    themistoklis
    5 years ago

    Giada_Togliatti 

    Make sure you create another (helper) date column with date type "date" in the same table using dax or Power Query.

    Using DAX:

    date_field = DATEVALUE(date_text)

     

    Then sort the field with date as text using the date field with date datatype.

    Go to model view then select the datetext field and sort by date(date type) field

     

     

     

4 Replies