Create Aggregation Calculations in Charts

In your SAP Analytics Cloud chart, you can use the Calculation Editor to create aggregations.

Calculations can be created from aggregations such as sum, count, average, and so on. When you create an aggregation, you can also choose what conditions are required for the aggregation to be applied, and when the conditions are required. For example, you can create an aggregation to count the number of sales per store, when the store carries a certain product.

Create an Aggregation

  1. Select a chart and do one of the following:

    • In Builder, choose Start of the navigation pathAdd Account Next navigation step Calculations Next navigation step Add CalculationEnd of the navigation path.

      1. In Builder, in the Chart Add-Ons section, select Cross Calculations.

        A Cross Calculations section is added with the default dimension Measure Values.

      2. In the Cross Calculations section, select Start of the navigation pathAdd Cross Calculation Next navigation step Add Cross CalculationEnd of the navigation path.

    The Calculation Editor appears.

  2. Select Aggregation from the list.

  3. Enter a name for the aggregation.

  4. Select an Operation (aggregation type).

  5. In the Account section, select values from the list.

  6. In the Aggregation Dimensions section, select one or more dimensions to apply the aggregation to. For example, if you select the Date and Product dimensions, values for each product at the smallest time granularity in the model will be aggregated.

    To add additional dimensions, use Add a Dimension.

  7. Select OK.

Aggregation Types

The following aggregation types are supported:

Type

Description

SUM

The sum of the measure’s values across all leaf members of the selected dimensions.

COUNT

The number of leaf members of the selected dimensions with values for a specific measure, including null values. Empty values for this measure are not counted.

COUNT DIMENSIONS

The number of leaf members of the selected dimensions that have at least one measure value. This aggregation doesn't count members that have an empty value for all measures. (COUNT DIMENSIONS is not valid for the Cross Calculations dimension.)

COUNT excl NULL

The number of values, excluding null values.

COUNT excl 0, NULL

The number of values, excluding zero and null values.

MIN

The smallest value across the selected dimensions.

MAX

The largest value across the selected dimensions.

AVERAGE

The average of the measure’s values across the selected dimensions, including null values.

AVERAGE excl NULL

The average of the measure’s values, excluding null values.

AVERAGE excl 0, NULL

The average of the measure’s values, excluding zero and null values.

FIRST

Shows the first (oldest) value in the selected time period: for example, show the number of employees on the first day of a month.

LAST

Shows the last (most recent) value in the selected time period: for example, show the number of employees on the last day of a month.

STANDARD DEVIATION

Calculates how much the value varies from the average value in the series.

MEDIAN

The median (middle) value (half of the data lies below the median value, and half lies above).

MEDIAN excl. NULL

The median (middle) value (half of the data lies below the median value, and half lies above), ignoring null values.

MEDIAN excl. 0, NULL

The median (middle) value (half of the data lies below the median value, and half lies above), ignoring null and zero values.

FIRST QUARTILE

Calculates the first quartile value (25% of the data is less than this value).

FIRST QUARTILE excl. NULL

Calculates the first quartile value (25% of the data is less than this value), ignoring null values.

FIRST QUARTILE excl. 0, NULL

Calculates the first quartile value (25% of the data is less than this value), ignoring null and zero values.

THIRD QUARTILE

Calculates the third quartile value (75% of the data is less than this value).

THIRD QUARTILE excl. NULL

Calculates the third quartile value (75% of the data is less than this value), ignoring null values.

THIRD QUARTILE excl. 0, NULL

Calculates the third quartile value (75% of the data is less than this value), ignoring null and zero values.