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
v-easonf-msft
4 years agoCommunity Support
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
powerbiss
4 years agoHelper I
Thank you v-easonf. Worked great. Really appreciate your help