@CORRELATION

Returns the correlation coefficient between two parallel data sets (expList1 and expList2). The correlation coefficient determines the relationship between two data sets.

Syntax

@CORRELATION (SKIPNONE | SKIPMISSING | SKIPZERO | SKIPBOTH, expList1, expList2)
ParameterDescription

SKIPNONE

Includes all cells specified in expList1 and expList2, regardless of their content, during calculation of the correlation coefficient.

SKIPMISSING

Excludes all #MISSING values from expList1 and expList2 during calculation of the correlation coefficient.

SKIPZERO

Excludes all zero (0) values from expList1 and expList2 during calculation of the correlation coefficient.

SKIPBOTH

Excludes all zero (0) values and #MISSING values from expList1 and expList2 during calculation of the correlation coefficient.

expList1

The first list of member specifications, variable names, functions, or other numeric expressions.

expList2

The second list of member specifications, variable names, functions, or other numeric expressions.

Notes

Example

The following example is based on the Sample Basic database. Assume that the Measures dimension contains an additional member, Sales Correl. The calculation script calculates the correlation coefficient for a set of members (Sales for the children of Qtr1 and Qtr2). Because the calculation script fixes on Jun, the results are placed in Sales Correl->Jun.

This example uses the @RANGE function to generate expList1 and expList2:

FIX(June)
"Sales Correl"=@CORRELATION(SKIPNONE,
@RANGE(Sales,@CHILDREN(Qtr1)),@RANGE(Sales,@CHILDREN(Qtr2)));
ENDFIX

This example produces the following report:

             Colas     Actual    New York                         
               Sales       Sales Correl
               =====       ============
Jan             678             #MI
Feb             645             #MI
Mar             675             #MI
Apr             712             #MI
May             756             #MI
Jun             890        0.200368468

See Also

  • @RANGE