Direction Of Moving Function Calculation

In all of the Moving Function calculation examples, it is assumed that the Moving Function calculation proceeds in a downward direction for each Computed Item column. That is to say, the Moving Function calculation window progresses downward, one row at a time, for each subsequent row of displayed fact data. This downward movement is evident in the Table section data (which has been used in the examples shown above) since, in a Table section, each new instance of fact data can only be represented as a new row.

Other sections, however, such as Pivot and Chart allow the possibility for fact data to be represented in more than one directional axis. In the case of Pivot and Chart sections, therefore, you can specify the direction of Moving Function calculation. To illustrate the effect of changing the direction of Moving Function calculation, consider the previously shown Table data:

Table 184. Moving Function Example

Month

Sales

Jan

10

Feb

15

Mar

17

Apr

20

May

22

Jun

20

Jul

25

Aug

27

Sep

30

Oct

35

Nov

37

Dec

40

Adding a new Computed Item column to display a 3-Month Moving Difference would yield:

Table 185. 3-Month Moving Difference Example

Month

Sales

3-Month Moving Difference

Jan

10

Feb

15

Mar

17

7

Apr

20

5

May

22

5

Jun

20

0

Jul

25

3

Aug

27

7

Sep

30

5

Oct

35

5

Nov

37

7

Consider, however, if the "Month" and "Sales" data were oriented as follows (as could be done in a Pivot section):

 Month            

Jan

Feb

Mar

Apr

May

Jun

Jul

Aug

Sep

Oct

Nov

Dec

Sales

10

15

17

20

22

20

25

27

30

35

37

40

If a new Computed Item were added, to represent a 3-Month Moving Difference, and the Moving Function calculation direction was still down each column, this would result in null values being represented for the Computed Item (as below) since there would only be one fact value per column (this would not be enough fact occurrences to satisfy a 3-term Moving Difference).

 Month           

Jan

Feb

Mar

Apr

May

Jun

Jul

Aug

Sep

Oct

Nov

Dec

Sales

10

15

17

20

22

20

25

27

30

35

37

40

3-Month Moving Difference

If, instead, the Moving Function calculation direction were specified to be along each row (i.e. horizontally from right to left) the Moving Difference Computed Item would yield the "expected" results since the source "Sales" Fact data cells would be examined in their "correct" left-to-right sequence. That is, the following display would result:

 Month           

Jan

Feb

Mar

Apr

May

Jun

Jul

Aug

Sep

Oct

Nov

Dec

Sales

10

15

17

20

22

20

25

27

30

35

37

40

3-Month Moving Difference

7

5

5

0

3

7

5

5

7

5