AGGREGATE

In a data query, you can use the AGGREGATE operator to calculate one or several aggregations from the input stream.

For example, you can:

  • Count the number of employees.
  • Get the sum of a stream of prices.
  • Pick the oldest person of a stream of persons.
  • Extract the last percentile of a distribution.

You define aggregations with aggregation functions.

This page discusses:

See Also
Aggregation Functions
Expression Language
Defining Data Queries

You generally need only one aggregation and define it with the Single aggregator container.

If you want to process several aggregations at the same time, use the Multiple aggregator container.

General Parameters

Parameter Description
Label

Specify the label to display below the operator type in the data query.

Description

Add a description to display as tooltip on hover over the operator icon.

Tip: It is useful to explain what the operator does, especially when you share the data query with other users.
Operator input variable Specify the name to give to the variable that contains the input data. The variable is then available when you define expressions.

Aggregation Parameters

Configure the operator with the following parameters:

Parameter Description
Single aggregator You generally need only one aggregation and define it with this aggregator.
Multiple aggregator Use this aggregator, if you want to process several aggregations at the same time.
Filter expression Define an expression to keep some elements only. It is useful to process the aggregation on a subpart of your input stream.
Aggregator Defines the aggregation function type. For more information, see Aggregation Functions.