Forum Discussion

kasiaw29's avatar
kasiaw29
Resolver II
3 years ago
Solved

Rolling Sum between two dates

Hi community,

 

I'm hoping for someone's assistance on a measure I'm trying to create. 

I have a table with orders, their total value and date when it was created and invoiced, see below:


Let's use highlighted line as an example
Created 25/05/2021 and invoiced on 08/09/2021 of a value of 7,133.49. I want to create a measure where 7,133.49 shows in May, June, July and droppes of August so it almost rolls into each month from created until it's invoiced. 

 

I tried some measures using DATESBETWEEN or below:

Total Booked Open =
CALCULATE(SUM('Customer Orders'[BOOKED_VALUE]),
FILTER(
    'Calendar',
    'Calendar'[Day] >= MIN('Customer Order Dates'[Date Entered])
        && 'Calendar'[Day] <= MAX('Customer Order Dates'[Invoiced Date])))
 
But it's not working quite as expected. Any advice would be wonderful.
 
Thanks,
Kasia 

2 Replies