Forum Discussion
Rolling average with adjustable time frame
I need the weekends to not count in the equation if possible, that was where I was having the most trouble. For example, if X equals 10 6/28/2024 should average the previous 10 existing figures to 6/14/2024. Weekend figures shouldn't be present
What is your definition of weekend? What if there is a weekend day with data ? What if there is a weekday without data?
- BryantSturn2 years agoRegular Visitor
Sorry for the confusion but the data does not include weekends (Saturday or Sunday) or holidays. I would like to not count those, preferably by only counting which days are provided.
- lbendlin2 years ago
Super User
Do you need the column or row totals? They would be much more complex to get accurate with your new rules.
see attached.
- BryantSturn2 years agoRegular Visitor
Thanks that's perfect. I do not need row or column totals. The only total I need is to compare the calculated average and the current day value, then count the amount of times the current day exceeds the calculated average (for each account, not summed across for the day). These are example numbers but we're creating a threshold for a lookback period to present. We need to compare the amount of threshold breaks with the size of the lookback period.