Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Date: How to customise Format and keep it continuous

Hi, 

I am having a Date column appearing by default in a "DD MMMM YYYY" format (01 January 2019) and want to change that to "1 Jan '19" instead. But I can't. 

I used both the FORMAT and CONCATENATE DAX functions, and although the dates appeared oin the desired format, the column type changed from Date to text adn from continuous to categorica.

That had in impact in showing YTD figures (that is for instance not only volums by day but also days with no volume at all) and entries with zero values won't appear as a result of this. 

Any kind of help would be (extremely) appreciated as I'm thinking of working it on Python as my last resort. 

Many thanks,
K

7 Replies

  • You have to make sure that, after your change, its data type remains date. Best it choose from format option in Data/Model view. 

     

    For display, you can create a new column and can set its sort column as an original date column. That will allow using custom date format with sorting.

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thanks v-diye-msft 

      Yes, but without the dashes - I also just noticed that there's a new update out as I didn't have that option on the one I was working on. 

      • v-diye-msft's avatar
        v-diye-msft
        Icon for Community Support rankCommunity Support

        Hi Anonymous 

         

        If you'd like to keep the format as Date, you can only choose the one from the dropdown list.