Hi,
I am doing forecast analysis, I need to to be able to determine two things. First, let me describe the data a bit.
I have forecast and actuals time series data, grouped at the lowest level we do planning at (plant, item#, customer, week). I have also built a relative week table to today, which is included in the data set. Example Below:
| Plant | Item# | Customer | Week | Relative Week | Forecast | Sales |
| A | 123 | 0001234 | 48 | -3 | 100 | 110 |
| A | 123 | 0001234 | 49 | -2 | 100 | 90 |
| B | 123 | 0001234 | 48 | -3 | 95 | 55 |
Now, what I need is these two things:
1.Rolling 5 week average of actual sales (average for the previous 5 weeks at that grouping level)
2.Rolling weeks -5 to +5 average forecast (average forecast based on 5 weeks back and forward at the lowest grouping level).
In excel, I would probably use some form of AverageIfs(), making sure to aggregate at the level I need. Can this be done in alteryx?
Any input would be greatly appreciated. Thanks!
Chase