Skip to content

Aggregate Column

Type: aggregate-column  ·  Package: DataTable Activities v1.0.0  ·  Output: double

Calculates a summary value on a column of a DataTable: the sum, count, average, minimum, or maximum. It is the direct way to obtain totals and metrics from a data set — the total to be collected, the number of records, the average of an indicator.

Applies the indicated operation to the values of column and returns a number. For numerical operations (sum, avg, min, max), the column must contain numbers; count counts the rows.

ParameterEditorDescription
tableexpressionThe DataTable.
columntextName of the column to add.
operationlistOperation: sum · count · avg · min · max.

Ninguno.

Returns a double with the result of the aggregate.

Total and average sales:

Aggregate Column table = = ventas column = "Monto" operation = sum → output: total
Aggregate Column table = = ventas column = "Monto" operation = avg → output: promedio
Log message = = "Total: " + total + " · Promedio: " + round(promedio, 2)