Forum Discussion

IT-Joe's avatar
IT-Joe
New Member
6 years ago
Solved

PREVIOUSYEAR FUNCTION ++

Our business has a trienial cycle and I need to compare current sales to sales of 3 years prior. The PreviousYear function will do last year, but how can I get it to work for the same period 3 years ...
  • amitchandak's avatar
    6 years ago

    Try

    CALCULATE(SUM(Sales[Sales Amount]),SAMEPERIODLASTYEAR(dateadd('Date'[Date Filer],-3,YEAR)))