Forum Discussion

Spigaw's avatar
Spigaw
Helper III
4 years ago
Solved

Date formatting in a graph created with the data model

Hello,

I hope this will not be off topic, but I can't find any answer about this oh-so-small problem that is driving me mad.

 

I have data which I prepared with Query, which I use with the data model in order to create a pivot table, then a (very simple) graph. But I can't find any way to change the date format of the data table under the graph; I want it to show mm/yy instead of dd/mm/yyyy. I tried a lot of solutions, but nothing seems to work.

 

Any help would be really appreciated... Thanks in advance!

  • you can add a calculated column of YearMonth with the formula =format([date],"mm/yy")

    then put it on the vertical axis

     

2 Replies

  • wdx223_Daniel's avatar
    wdx223_Daniel
    Community Champion

    you can add a calculated column of YearMonth with the formula =format([date],"mm/yy")

    then put it on the vertical axis

     

    • Spigaw's avatar
      Spigaw
      Helper III

      Yup, worked perfectly! I didn't think it would be necessary to add a column in my data model, but it does the trick without slowing down the database.

      Thank you!