Forum Discussion

smithshire's avatar
smithshire
Frequent Visitor
3 years ago
Solved

Previous 2 years

I currently have a visual that calculates the YTD and the I use the PREVIOUSYEAR function to calculate the full previous year. Is it possible to calculate the year previous to the previous year i.e. 2 years ago?

 

This is my Previous year measure - 

PreYear = CALCULATE([Overall], PREVIOUSYEAR(CalendarTable[Dates]))
  • = CALCULATE([Overall],DATEADD(CalendarTable[Dates],-2,YEAR))

1 Reply

  • = CALCULATE([Overall],DATEADD(CalendarTable[Dates],-2,YEAR))