Go to primary content
Previous
Previous
 
Next
Next

Average of Two Measures

Returns the average of two measures.

Template

Average of measure (...) and measure (...).

Example

This calculated measure averages Sales and Sales Prior Year.

Calculation

Average of SALES (...) and SALES_PY (...).

OLAP Expression Syntax

(UNITS_CUBE.SALES + UNITS_CUBE.SALES_PY) / 2

Query Results

The Average column shows the average of Sales and Sales PY (Prior Year).

Time               Sales      Sales PY       Average
---------- ------------- ------------- -------------
Q1.05        31381338.07   32977874.07   32179606.07
Q2.05        37642741.22   35797921.09   36720331.16
Q3.05        32617248.57   33526203.05   33071725.81
Q4.05        35345244.10   41988687.34   38666965.72
Q1.06        36154814.62   31381338.07   33768076.35
Q2.06        36815657.09   37642741.22   37229199.16
Q3.06        32318934.94   32617248.57   32468091.76
Q4.06        34848910.74   35345244.10   35097077.42