Forum Discussion
powerbiss
4 years agoHelper I
Previous Year Sales
Hello, I am trying to calculate previous year's sales with the below sample data. I used the two formulas and didnt get the right answers. I also have a date table from 2018 to 2022 with date and ye...
- 4 years ago
Hi, powerbiss
Try measuse as below:
Last Year = CALCULATE ( SUM ( sales[Sales] ), FILTER ( 'sales', YEAR ( sales[Date] ) = YEAR ( TODAY () ) - 1 ) )Best Regards,
Community Support Team _ Eason
Anonymous
4 years agoNot applicable
the table Feuil5
Measure#1 ==>
Sales Y = calculate(sum(Feuil5[Sales]))
Measure#2 ==>
Sales PY = calculate([Sales Y],SAMEPERIODLASTYEAR('Date'[Date]))
and the final result
powerbiss
4 years agoHelper I
Hi James,
That worked for me. Thanks for your help