Skip to content

Aggregate Data By Column

Description

This activity aggregates the data in a specified column using various transformations. The aggregation is performed based on user-defined grouping criteria and aggregation functions.

Input

Data only

Output

Transformed data


Configuration Fields

  • Group By Column Specifies the column name(s) used for grouping data.
  • Aggregations Defines the set of columns and their corresponding aggregation types.
    • Column Name of the column to be aggregated.
    • Type of Aggregation Specifies the aggregation function to apply (options sum, average, count).
  • Include Original
    • If enabled, retains the input data columns along with the transformed columns.
    • If disabled, only the output columns are included.
  • Text Column Strategy Defines how to handle text columns within groups. Options
    • First Retains the first encountered value within each group.
    • Last Retains the last encountered value within each group.

Sample Input

CategoryTotal SalesUnits SoldProduct Name
Electronics5000050Laptop
Electronics5000050phone
Furniture6000040Sofa
Electronics5000050Laptop
Clothing2000030T-Shirt
Clothing2000030ethnix
Furniture6000040Bed
Clothing4000030pants

Sample Configuration

alt text


Sample Output

CategoryTotal SalesUnits SoldProduct Name
Electronics15000050Laptop
Clothing8000030T-Shirt
Furniture12000040Sofa