Dashboard Functions Reference

About the Dashboard Functions Reference

This topic describes all the functions you can use in Sisense's dashboard formula editor.

Note:

For information about the functions for custom tables and fields, see Data Functions for Custom Tables and Fields.

Functions in this reference are organized in to sections as follows:

Most of the functions have one or more of the following properties and are so marked:

  • Aggregative functions:

    Aggregative functions operate on a table column and typically return a numeric value. They are marked with (A) next to their names. Most of the statistical functions are aggregative.

  • Multipass compatible functions:

    Multipass compatible functions are marked with (M) next to their names. The Multipass Declaration - ([Dimension], Aggregation) is a group by statement that is used with aggregative functions to group the result set by one column and return a list. For example, the formula AVG([Brand], SUM([Cost])) calculates the average of total cost per brand.

  • Functions only supported for ElastiCubes:

    These functions are marked with (EC) next to their names. All other functions are supported for both ElastiCube and Live models.

Convention:

Function names are not case sensitive. For example, the average function can be entered as Avg, avg etc. The function selector in the dashboard editor always supplies function names in upper case for example, AVG. The upper case convention will be followed below.

Important note:

The Analytical Engine requires that every measure defined in the formula editor be aggregative. For example, instead of DDiff([Discharge Time], [Admission Time]), use AVG(DDIFF([Discharge Time], [Admission Time])).

The examples here do not always include a wrapping aggregation function, even though one will be required by the formula editor. (The example screen shots do include a wrapping aggregation function - because otherwise, they wouldn't work.)

Statistical Functions

Statistical Functions Supported by ElastiCube and Live Models

Aggregative Functions

Non-aggregative Functions

Statistical Functions Supported by ElastiCube Only

Aggregative Functions

Non-aggregative Functions

Mathematical Functions

Mathematical Functions Supported by ElastiCube and Live Models

Aggregative Functions

Non-aggregative Functions

Note:

Most of the following functions takes a single argument that is either a numeric constant or a numeric aggregative field function result such as SUM(), AVG() etc. Compositions of mathematical functions also work when they are well defined, such as LN(COSH(<numeric field>)). However, compositions like LN(COS(<numeric field>)) will fail when COS(<numeric field>) is less than or equal to zero.

The dashboard functions all have the same syntactic form:

<function_name>(<numeric field>)

or

<function_name>(<numeric field>, <number>)

<function_name> is typically like ABS, SIN, LOG10 and more as shown in the list of functions below.

The argument, <numeric field> is a numeric value or an aggregative function of a database column such as SUM, AVG, STDEV and so on. You can also pick aggregation functions from the function editor:

The shown functions, Sum ... Standard Deviation are all aggregative.

The <number> argument appears MOD, POWER, QUOTIENT and ROUND.

In the following list, functions labeled (EC) are for ElastiCube only.

Non-aggregative Functions

Mathematical Functions Supported by ElastiCube Only

Time and Calendar Functions

Measured Value Functions

These functions only work as part of a measured value, not by themselves. See Measured Values for more information.

Logical and Conditional Functions

Other Functions Supported by ElastiCube and Live Models

These functions are supported for both ElastiCube and Live models.

Other Functions Supported by ElastiCube Only

These functions are only supported for ElastiCubes.