Transform Reference

Aggregation Verbs

Accumulator operations and array aggregation functions (sum, count, min, max, avg).

VerbSyntaxDescriptionTry It
accumulate%accumulate name valueAdd value to accumulator Try
sum%sum @array.fieldSum of field values Try
count%count @arrayCount items Try
min%min @array.fieldMinimum value Try
max%max @array.fieldMaximum value Try
avg%avg @array.fieldAverage value Try
first%first @arrayFirst element Try
last%last @arrayLast element Try

Examples

Aggregation examples
; Array aggregation
total_premium = %sum @vehicles.premium
vehicle_count = %count @vehicles
avg_premium = %avg @vehicles.premium
oldest_year = %min @vehicles.year
primary_vin = %first @vehicles.vin