Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Creating a Date Table with only months and Years

Hello I want to create a Date Table with the following format :    MONTH :  format whole number (1-12) YEAR: start year: from two tables f_final & f_mvt, source column YEAR whole number FullDate ...
  • ryan_mayu's avatar
    5 years ago

    Anonymous 

    maybe you can try this

    Table = 
    VAR TBL=ADDCOLUMNS(CALENDARAUTO(),"month",month(''[Date]),"year",year(''[Date]),"ID_Date",year(''[Date])*100+month(''[Date]),"fulldate",date(year(''[Date]),month(''[Date]),1))
    RETURN SUMMARIZE(TBL,[month],[year],[ID_Date],[fulldate])