Functions
The conditional expression language supports these built-in functions, which fall into three distinct categories:
-
Table functions, which perform actions on values across all rows in the report table.
-
Row functions, which perform actions on a single row.
-
External functions, whose values come from a source other than NaviPlex report data and do not depend on the current row.
Table Functions
- The scope of NaviPlex table functions cannot be modified by qualifiers such as GROUP BY, HAVING, or DISTINCT. They always operate on the entire report table.
- Their arguments may contain other column functions. For example:
SUM(SUM(CPU-SUM(CPU)/COUNT(1)>0)*SERVICE_UNITS) is illegal in SQL, but is valid in NaviPlex. - Row (scalar) values and table functions can be freely intermingled in the same
expression. For example:
SUM(CPU)-CPUis illegal in SQL, but is valid in NaviPlex.
|
Function |
Example |
|
|---|---|---|
|
AVG |
Short for |
|
|
COUNT |
Returns the number of rows for which the
expression |
|
|
MAX |
Evaluates the expression |
|
|
MIN |
Evaluates the expression |
|
|
OCCURS |
Short for |
|
|
SUM |
Returns the sum of the values of the expression
|
|