Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
In this article
Applies to: ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
Calculates the sum of elements in a dynamic array.
array_sum
(array)
Learn more about syntax conventions.
Name | Type | Required | Description |
---|---|---|---|
array | dynamic |
✔️ | The array to sum. |
Returns a double type value with the sum of the elements of the array.
Note
If the array contains elements of non-numeric types, the result is null
.
This following example shows the sum of an array.
print arr=dynamic([1,2,3,4])
| extend arr_sum=array_sum(arr)
Output
arr | arr_sum |
---|---|
[1,2,3,4] | 10 |