Forum Discussion

ysherriff's avatar
ysherriff
Resolver II
4 years ago
Solved

Dateadd function not working

Hi all,   I am trying to do a simple calculation to get the previous year utilizing dateadd. In Image 1, when I use previous year, the output is correct. When I tried to use Dateadd, the output sho...
  • PaulDBrown's avatar
    PaulDBrown
    4 years ago

    PREVIOUSYEAR returns the values covering all dates in the previous year, while DATEADD as you have it returns the values for the same date in the previous year.
    Are there any values for the previous year's dates where it is now showing blank?

    Also, does the date table contain continuous dates covering the whole range of dates in the model?