Forum Discussion

LaurenceSD's avatar
LaurenceSD
Advocate II
5 years ago
Solved

Fixed Last 4 weeks calculation

Hi,   I'm trying to create a measure that'll show me the Last for weeks value this year and the last 4 weeks value the year before, regardless of the dates specified (I'm wanting to do some forecas...
  • LaurenceSD's avatar
    LaurenceSD
    5 years ago

    Right I've now found a solution

     

    The column Bookings This Year Last 4 Week Total in the below was what i was wanting to acheive, I can now plug in the same formula to get Last Year Minus one and then work out the growth

     

     

    I've had to use two formulas to acheive this, I'm sure there must be a way of making this into one formula? Is that possible?

     

    Bookings This Year Last 4 Week By Day =
    CALCULATE([Bookings This Year],
    FILTER(Dates,Dates[Date]>=(today()-1)-(4*7)),FILTER(Dates,Dates[Date]<=(today()-1)))
     
    Bookings This Year Last 4 Week Total = CALCULATE([Bookings This Year Last 4 Week By Day],ALL(Dates))
     
    Thanks