Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Creating a Date Table with only months

Hi all,   I'm trying to created a date table, where each row is equal to one month, like:   January 2023 February 2022 March 2022   I've tried a number of methods for this but I can't seem to...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi Anonymous 

    You can refer to the following example.

    Create a new table

    Table = var a=ADDCOLUMNS(CALENDAR(DATE(2022,1,1),DATE(2023,1,1)),"Month Year",FORMAT([Date],"yyyy mmmm"))
    return SUMMARIZE(a,[Month Year])

     

    Then change the data type to date, and the format to "mmmm yyyy"

     

    Best Regards!

    Yolo Zhu

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.