Thursday, November 7, 2013

[OBIEE] Averages In OBIEE


 



Averages in OBIEE





AVG


This function calculates the average (mean) value of an expression in a result set. It must take a numeric expression as its argument.

Note that the denominator of AVG is the number of rows aggregated. For this reason, it is usually a mistake to use AVG(x) in a calculation in Oracle Business Intelligence. Instead, write the expression manually so that you can control both the numerator and denominator (x/y).

Syntax

AVG(numExpr)
Where:
numExpr is any expression that evaluates to a numeric value.


AVGDISTINCT


This function calculates the average (mean) of all distinct values of an expression. It must take a numeric expression as its argument.

Syntax

AVG(DISTINCT numExpr)
Where:
numExpr is any expression that evaluates to a numeric value.


No comments:

Post a Comment