Forum Discussion

RMDNA's avatar
RMDNA
Solution Sage
8 years ago
Solved

Create date columm from odd text format

Hi all,   I'm running into an issue trying to create a date from an odd format.   From the below table, we have Year, Week Num of Year, and Day of Week Num. I need to turn the first row into Febr...
  • Phil_Seamark's avatar
    Phil_Seamark
    8 years ago

    HI RMDNA

     

    Please give this calculated column a try

     

    Column = 
    VAR BaseDate = DATE(2018,2,1)
    RETURN 
        BaseDate + 
        ('Table 2'[DayOfWeekNum]-1) +
        ('Table 2'[WeekNum] * 7) - 7