Moving Median

The MovingMed function operates over a moving window of values. For each Window, the MovingMed returns the middle value (in terms of rank) found in the Window. If the Window value is an even number, the simple mean value of the two middle ranking values should be used. No “Weighted” or “Exponential” can be calculated for this function.

The MovingMed function takes the following arguments:

MovingMed (column, window, break_col)

where:

The following results would occur if you used the MovingMed function with a Window of 3 (MovingMed(Sales,3).

Table 181. MovingMed Function Example

Month

Original Sales Values

3-Month MovingMed Average

Jan

10

 

Feb

15

 

Mar

17

15

Apr

20

17

May

22

20

Jun

20

20

Jul

25

22

Aug

27

25

Sep

30

27

Oct

35

30

Nov

37

35

Dec

40

37