Forum Discussion

Rsanjuan's avatar
Rsanjuan
Icon for Advocate III rankAdvocate III
9 years ago
Solved

Creating Individual Dates based on Week of field

  Is there a way to create individual dates if you have only a week of (based on Sunday) field and names of days?    For example, I have the following:   Week of          Monday      Tuesday    ...
  • Sean's avatar
    9 years ago

    In the Query Editor

    1) Select Week Of  column - Transform tab - Unpivot Other Columns

    2) Add Column Tab - Add Conditional Column - and name Number

     

    3) right-click Number column and change type to whole number

    4) Add Column Tab - Add Custom Column - and name it Date

    = Date.AddDays([Week Of], -[Number])

    That should do it!

    MarcelBeugis there an easier way?