Forum Discussion
Elofly
3 years agoFrequent Visitor
Last Week Daily Sales Line Graph
Hi everyone! I am trying to build a line graph where I have the following data: - Y axe: Total Sales - X axe: Days of the week (Monday, tuesday, etc.) - Line A: Last week sales - Line B: Prev...
- 3 years ago
Hi Freeman,
At the end I went for this:
Last Week TTV (-2) =var LASTWEEK = WEEKNUM(TODAY()-7,2)returnCALCULATE(SUM(vw_Becca_ZoeBookings[TotalPrice]),FILTER('Calendar Bookings','Calendar Bookings'[Week Number] = LASTWEEK))Thanks a lot for your help!Best regards,
FreemanZ
3 years agoSuper User
You are right, there is no WEEK interval. You can try -7 DAY and -14 DAY.
Elofly
3 years agoFrequent Visitor
Unfortunately, that would run weeks and not "calendar weeks" (from monday to sunday only)
- FreemanZ3 years agoSuper User
What does that mean? Could you please provide a screenshot or upload the simplified report?
- Elofly3 years agoFrequent Visitor
Hi Freeman,
At the end I went for this:
Last Week TTV (-2) =var LASTWEEK = WEEKNUM(TODAY()-7,2)returnCALCULATE(SUM(vw_Becca_ZoeBookings[TotalPrice]),FILTER('Calendar Bookings','Calendar Bookings'[Week Number] = LASTWEEK))Thanks a lot for your help!Best regards,- FreemanZ3 years agoSuper User
Glad to hear that. With WEEKNUM, we even don't need the Date table, bravo!!!