Forum Discussion
jsteffe
Helper III
5 years agoProblem with previousYear function
I gest these 2 measures : total_of_sales = SUM(Order_details[total_without_discount]) Total_sales_previous_year = CALCULATE([total_of_sales],PREVIOUSYEAR('Calendar'[Date])) I don't understan...
- 5 years ago
Can you share your file with shorten data? I want to see what's your date format.
PaulDBrown
Community Champion
5 years agoTry:
Total_sales_previous_year = CALCULATE([total_of_sales], DATEADD('Calendar'[Date], -1, YEAR))