The attached report uses a parameter for moving average points and the uses that parameter to calculate a moving average of the Sales data item.<br />
<br />
The design shows two methods:
<br />
- Standard aggregate function (MOVINGAVE).<br />
- An array to store the points and is declared in the beforeFactory event. The rest of the code is in the MovingAverage data item itself.<br />