Create an Aggregation in a Data Flow
Insert an aggregation operator to perform SUM, AVG, MIN, MAX, or COUNT calculations.
Procedure
- Create a projection operator (see Create a Projection in a Data Flow) and remove all the columns from your dataset except those that you want to aggregate and those that you want to group the aggregations by.
- Click the Aggregation tool, drag it onto the diagram canvas, and release it where you want to create the aggregation.
- Click and drag the port on the right of the projection operator and drop it onto the aggregation operator.
A flow is created between the projection and the aggregation operator.
- Click the aggregation operator to display its properties in the side panel, and complete the properties in the General section:
Property
Description
Label
Provide a suitable name for your aggregation as per your requirement.
- In the Columns section, review the output columns and set aggregations.
Hover over a column and click:
-
(Menu)
Change Aggregation
to change its aggregation. You can choose:-
[no value] - Default. Use as grouping column.
-
SUM - [numeric columns only] Calculate the total value of all the rows.
-
AVG - [numeric columns only] Calculate the average value of all the rows.
-
MIN - [numeric columns only] Calculate the minimum value of all the rows.
-
MAX - [numeric columns only] Calculate the maximum value of all the rows.
-
COUNT - Calculate the number of distinct values.
-
-
(Menu)
Change Name
to change its name. -
to view its data type.
-
- To complete the aggregation, create a flow from it to the next operator or the target table, as appropriate.