Trying to perform a moving average over a range of dates for a specific value. In the example data set attached, the range between Finish and Start Date-Time is 15 days. Step one involves a moving average using one of the value columns (i.e. Value1) using values in rows between the Finish and the Start dates. You will see there is not a consistent number of records to average over by date. This step I can't quite figure out. The output must calculate back from the Finish Date over the last 15 days. I.e. For row 1, the average is equal to just the value for that day. Once there are over 15 days, use data only within the 15 day window.
StartDate is not required as the 15 could be in a formula. Any hints?
Step two requires I then perform across all rows (Value2, Value3) but that can wait till I figure out step 1.
Thanks