Moving Sum

MovingSum (Moving Sum) function operates over a moving window of values. For each Window, the MovingSum returns the sum of values found in the window. No “Weighted” or “Exponential” can be calculated for this function.

The MovingSum function takes the following arguments:

MovingSum (column, window, break_col)

where:

The following results would occur if you used the Moving Sum function with a Window value of 3.

Table 182. Moving Sum Example

Month

Original Sales Values

3-Month MovingSum Average

Jan

10

 

Feb

15

 

Mar

17

42

Apr

20

52

May

22

59

Jun

20

62

Jul

25

72

Aug

27

72

Sep

30

82

Oct

35

92

Nov

37

102

Dec

40

112