Specifies the array from which to retrieve the cumulative sum.
1. |
The following example returns the cumulative sum of all elements up to each position in the array. The function returns [1, 2, 3, 4, 5]. CUMULATIVESUM([1,
1, 1, 1, 1])
|
Specifies the array from which to retrieve the cumulative sum.
Specifies the index of the first element of the subset in the source array.
Specifies the number of elements (beginning at StartIndex) to include in the subset of the source array.
1. |
The following example returns the cumulative sums of all elements from the 8th to the 10th indices. The function returns [1, 2, 3].
CUMULATIVESUM([100, 1, 1, 1, 1, 1, 1, 1, 1, 1], 8, 3)
|
Specifies the array from which to retrieve the cumulative sum.
Specifies the expression to apply to each element of the source array.
1. |
The following example calculates the cumulative sum of all elements up to each position in the array after evaluating the expression on each element. The function returns [1, 2, 3, 4, 5].
CUMULATIVESUM([10, 10, 10, 10, 10], Item/10)
|
Specifies the array from which to retrieve the cumulative sum.
Specifies the index of the first element of the subset in the source array.
Specifies the number of elements (beginning at StartIndex) to include in the subset of the source array.
Specifies the expression to apply to each element of the source array.
1. |
The following example calculates evaluates the expression on the subset of the source array indicated by the index and count; this results in array [2, 2]. The function then calculates each elements' cumulative sum, and returns [2, 4]. CUMULATIVESUM([1,
1, 1, 1, 1], 3, 2, Item*2)
|