Forum Discussion
davidacosta
7 years agoRegular Visitor
Operation Last Year vs Current Year using filters
try to calculate automatically (add or sustract) selecting one month in the filters in one table. Need to compare for example sales for one year vs previous year. I has been try with this formula ...
Anonymous
7 years agoNot applicable
Hi davidacosta ,
If you're looking for the same period in the previous year (whether it's year, month, etc), use SAMEPERIODLASTYEAR, like this:
Sales Difference =
[Sales Amount Total]
-
CALCULATE([Sales Amount Total], SAMEPERIODLASTYEAR('Date'[Date]))
The output looks like this: