This page explains how to use the array_sum function in APL.
array_sum
function in APL computes the sum of all numerical elements in an array. This function is particularly useful when you want to aggregate numerical values stored in an array field, such as durations, counts, or measurements, across events or records. Use array_sum
when your dataset includes array-type fields, and you need to quickly compute their total.
Splunk SPL users
mvsum
for similar operations. In APL, array_sum
provides a direct method to compute the sum of numerical arrays.ANSI SQL users
UNNEST
and SUM
. In APL, array_sum
simplifies this by handling array summation directly.Parameter | Type | Description |
---|---|---|
array_expression | array | An array of numerical values to be summed. |
null
.
service.name | total_event_duration |
---|---|
frontend | 1667269530000 |
checkoutservice | 3801404276900 |