Configure the Aggregation Node
An Aggregation node represents a relational group-by and aggregation operation.
Prerequisites
Procedure
- Double-click the Aggregation node.
- Define the output columns.
If you have connected the previous node to the Aggregation node, you can map any columns from the input as output columns of the Aggregation node. You can add, delete, and rename the columns, as needed.
- In the Mapping pane, select a Source column and drag and drop it into the Drop row here zone in the Target section.
- Optional: If you want to automatically map the columns based on column names, in the Source section, choose
(Auto Map by Name). - If you want to edit a column name, select a Target column and choose
(Edit). - If you want to remap an output column with a different source column, right-click the mapping and choose Remap.
Select a new source column and choose OK.
- In the Mapping pane, select a Source column and drag and drop it into the Drop row here zone in the Target section.
- Define the aggregation type.
You can specify the columns that you want to have the aggregate or group-by actions taken upon.
- If you want to define an aggregation type, select a Target column and choose
(Edit). - In the Aggregation Type dropdown list, select a value.
Aggregation Type
Description
<empty>
Specifies a list of columns for which you want to combine output. For example, group sales orders by date to find the total sales ordered on a particular date. This type is the default aggregation type.
Avg
Calculates the average of a given set of column values.
Count
Returns the number of values in a table column.
Max
Returns the maximum value from a list.
Min
Returns the minimum value from a list.
Sum
Calculates the sum of a given set of values.
- If you want to define an aggregation type, select a Target column and choose
- Optional: Reorder output columns.
In the Columns tab toolbar, switch to the Form pane to reorder the output columns.
- To reorder the columns, select the column that you want to move and in the toolbar click the up or down arrows.
- Add and connect new nodes.
If you want to configure the Data Transform operator with another node, follow these steps:
- In the menu bar, use the breadcrumb navigation to go back to the node editor.
- Add new nodes.
- To connect the nodes, select the output port of a node and drag the cursor to an input port of another node.
- Define data target.
It is necessary to create a data target to the node and create an output port for Data Transform operator.
- Right-click the output port of the node and select Create Data Target.