Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

the calendar data list show duplicate date

Hello Community,  I created a calendar using  Dates = CALENDARAUTO() Can anyone explain why it shows so many duplicate date for one single month ? how to fix this. thank you so much.
  • amitchandak's avatar
    amitchandak
    6 years ago

    Anonymous , You can create new columns for month and year in the format you want. I can see you created a few.

     


    Month Year = FORMAT([Date],"mmm-yyyy")

    Or

    Month Year = FORMAT([Date],"mmmm-yyyy")
    Month Year sort = FORMAT([Date],"yyyymm")// Need to mark this as sort column to have correct sorting for the month year

    https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column

     

    If the need is there because you have some data/Table at the month level. Create a month start date

     

    Say You have Jan-2020 format

    Date = "01-" & [Month] // Change data type to date .

     

    You can create a table at month level to but that will not work well with time intelligence