Forum Discussion

Elofly's avatar
Elofly
Frequent Visitor
3 years ago
Solved

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...
  • Elofly's avatar
    Elofly
    3 years ago

    Hi Freeman,

     

    At the end I went for this:

    Last Week TTV (-2) =
    var LASTWEEK = WEEKNUM(TODAY()-7,2)
    return
    CALCULATE(SUM(vw_Becca_ZoeBookings[TotalPrice]),FILTER('Calendar Bookings','Calendar Bookings'[Week Number] = LASTWEEK))
     
    Thanks a lot for your help!
     
    Best regards,