Go to primary content
Previous
Previous
 
Next
Next

Average of Three Measures

Returns the average of three measures.

Template

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

Example

This calculated measure averages Sales with the Sales Least and Sales Greatest calculated measures.

Calculation

Average of SALES (...), SALES_LEAST (...), SALES_GREATEST (...).

OLAP Expression Syntax

(UNITS_CUBE.SALES + UNITS_CUBE.SALES_LEAST + UNITS_CUBE.SALES_GREATEST) / 3

Query Results

The Average column shows the average of the Sales, Least, and Greatest columns.

Time               Sales         Least      Greatest       Average
---------- ------------- ------------- ------------- -------------
Q1.05        31381338.07   28807585.60   31381338.07   30523420.58
Q2.05        37642741.22   34935496.23   37642741.22   36740326.22
Q3.05        32617248.57   30019319.89   32617248.57   31751272.34
Q4.05        35345244.10   32679638.30   35345244.10   34456708.83
Q1.06        36154814.62   33259687.30   36154814.62   35189772.18
Q2.06        36815657.09   34117654.21   36815657.09   35916322.80
Q3.06        32318934.94   29482602.61   32318934.94   31373490.83
Q4.06        34848910.74   32253825.85   34848910.74   33983882.44