Forum Discussion
Weekday Last Year Comparison
Hello,
I have used your solution, it works great. The only issue is that now I am trying to aggregate it per month as well.
To get the sales for last year I am using this:
Sales Last Year = SUMX(VALUES('Calendar'[DWY]),Calculate(SUM('Sales & Tickets'[Sales]), Filter(ALL('Calendar'),Calendar[DWY] = MAX(Calendar[DWY])-1 )))
Unfortunately when drilling through from day to month data is slightly inaccurate. Any idea how to solve this issue?
Again, thank you for your previous solution, it was extremely helpful!
For those interested, I replaced the MAX by the function EARLIER that I just discovered (which by my understanding we could actually almost always call current row).
- PBIUser1356 years agoFrequent Visitor
That bit on using the EARLIER function to get the right total when using this as a combined measure just made my month! I owe you big time!