Forum Discussion
Max01
8 years agoHelper I
Rolling Average
Hello, I've been reading a lot on this and tried so many different permutations but can't get it to work. Goal: I am trying to plot a moving average for 'delays' against date. Here is my raw ...
v-ljerr-msft
8 years agoMicrosoft Employee
Hi Max01,
If I understand you correctly, the formula below should work in your scenario. :smileyhappy:
delay length avg =
CALCULATE (
SUM ( 'Production Delays'[delay_length] ),
DATESINPERIOD ( 'Dates'[Date], MAX ( Dates[Date] ), -5, DAY )
)
/ 5
Regards
- Max018 years agoHelper I
Hi v-ljerr-msft,
Thank you for coming back with a solution and for taking the time to replicate my data.
Unfortunately it's still not working, now I get a blank column:
I tried increasing the increment to 10 days and then to 1 month but the column remains blank.
Any ideas?