Hi There,
I am trying to do write a beast mode to sum up Revenue from the Last 12 weeks but not counting the previous week. for example
Last Week = 11/22 - 11/28 (Sunday - Saturday)
I want to go back 12 weeks from last week, so I would start from the Week of 11/15
This is what I've come up with but it doesn't seem to return the correct value
SUM(CASE WHEN (`Date`) > DATE_SUB(LAST_DAY(DATE_SUB(CURRENT_DATE(), INTERVAL 1 WEEK)), INTERVAL 14 WEEK)
AND (`Date`) <=
LAST_DAY(DATE_SUB(CURRENT_DATE(), INTERVAL 2 WEEK))
THEN `Revenue`
END)
Thanks!