Forum Discussion

Karolina's avatar
Karolina
Icon for Helper I rankHelper I
6 years ago
Solved

Get date as month and year, but keep data type date

Get date as month and year, but keep data type date as I need to sort by date,  so using         format(<date>, "YYYY-MMM")         does not work as  this results in 2020-feb being befor...
  • tex628's avatar
    6 years ago

    You can change the display format of a date here:



    Another way to do it is by doing what you're propsing with the FORMAT() but also creating a sorting column that sorts the initial year/month column.

    Br,

    J

  • tex628's avatar
    tex628
    6 years ago

    Select the column or measure that you want formatted from the menu on your right. Once it's highlighted you can then open the modelling section and open the format dropdown:



    Br,
    J