Go to primary content

Create/Edit Analytic View: Aggregation Rules

An aggregation rule identifies the aggregation operator to use for all attribute dimensions by which the analytic view is dimensioned..

Force create object: Select this option to force the creation of the analytic view even if it does not successfully compile. If this option is not selected, the analytic view must compile successfully, otherwise an error occurs.

The Expression Editor shows the aggregation operator currently specified.

Aggregation Rules Specification

The Expression Editor in this section displays the expression syntax of the aggregation rule. A template for the aggregation rule appears below the editor.

To change the aggregation operator in the expression syntax:

  1. Click the underlined operator in the template.

  2. Select a different operator from the list that appears.

For example, the expression syntax for the default aggregation rule is the following:

SUM

The template for that expression is the following:

Sum over ALL dimensions

Aggregation Operators

The following table lists the available aggregation operators.

Aggregation Operator Description

Sum

Adds data values.

Average

Adds data values, then divides the sum by the number of data.

Count

Returns the number of rows returned by the query.

Maximum

Returns maximum value.

Minimum

Returns minimum value.

Standard Deviation

Returns the sample standard deviation of measure values; returns zero when the result of the query has only 1 row of input data.

Population Standard Deviation

Computes the population standard deviation and returns the square root of the population variance.

Sample Standard Deviation

Computes the cumulative sample standard deviation and returns the square root of the sample variance; returns null when the result of the query has only 1 row of input data.

Variance

Returns the variance of the measure values.

Population Standard Variance

Returns the population variance of a set of numbers after discarding the nulls in the set.

Sample Standard Variance

Returns the sample variance of a set of numbers after discarding the nulls in the set.