Infoworks 6.1.3
Prepare Data

Aggregating Data

The Aggregate node allows you to derive new columns by applying aggregate functions such as count, distinct count, sum, distinct sum, min, max, average, distinct average, and variance over a group of values.

Following are the steps to apply the Aggregate node in a pipeline:

  1. Drag and drop the Aggregate node from the Transformations section to the pipeline editor page.
  2. Connect the source node to the Aggregate node.
  3. Double-click the Aggregate node. The properties page is displayed.
  4. Click Add Group By, select the Group By Column for which the derived data is to be grouped by, and click Save.

5. To set the expression, select the Advanced mode and enter the expression and click Save.

  1. Click Add Aggregate and enter the following details:
FieldDescription
Column NameThe name for the output column with aggregated data.
From ColumnThe column on which the aggregate function is to be performed.
FunctionThe aggregate function to be applied on the column. The options include Count, Distinct Count, Sum, Distinct Sum, Avg, Distinct Avg, Min, Max, and Variance.

NOTE For columns of integer and date datatypes, all the functions will be enabled in the Function drop-down list. For the columns of string datatype, only Count and Distinct Count functions will be enabled.

  • To set the Aggregate expression, select Advanced mode and enter the expression and click Save.
  • The aggregated data is fetched based on the columns and functions used. All group by and derived columns are added in the metadata section.

NOTES

  • For details on derivations, see Derivations.
  • DISTINCT(col1, col2) is not supported by Snowflake and BigQuery: The pipeline build fails if this SQL is imported in Snowflake or BigQuery execution engine environments.

Post Processing Configuration

For details, see Configurations-Post Processing.

  Last updated by Prerana Dutta