Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

difference between two dates in weeks

Hi Guys   I need your help.    I have data table with order nr and then 4 dates. - Creation date (this is in date format, but also week and year),  - Req. week (only in week and year format) -...
  • Anonymous's avatar
    Anonymous
    8 years ago

    Greg_Deckler

     

    Almost correct

     

    this is the correct formula that works 

     

    Column =
    VAR __dec31 = DATE([Req. Del. Year],12,31)
    VAR __weeks = [Req. Del. Week]-[Creation Week]
    RETURN
    IF(
    [Creation Week] > [Req. Del. Week],
    WEEKNUM(__dec31) -[Creation Week]+ [Req. Del. Week],
    __weeks
    )

     

    but thank you very much without you I would not able to finish it..