# Sum array (this must be at least 15 characters, I guess)

**URL:** <https://forum.alumio.com/t/sum-array-this-must-be-at-least-15-characters-i-guess/614>\
**Category:** General\
**Tags:** jmespath\
**Created:** [May 26, 2023, 8:27am UTC](https://forum.alumio.com/t/sum-array-this-must-be-at-least-15-characters-i-guess/614 "2023-05-26T08:27:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jos](https://forum.alumio.com/letter_avatar_proxy/v4/letter/j/2bfe46/32.png) [@jos](https://forum.alumio.com/u/jos)\
**Post date:** [May 26, 2023, 8:27am UTC](https://forum.alumio.com/t/sum-array-this-must-be-at-least-15-characters-i-guess/614/1 "2023-05-26T08:27:01Z")

</div>

Hi,

Does anybody know how to sum the values of an array. Like

{  
“test”: [  
250,  
500  
],  
“total”: 750  
}

I managed to do this a while ago, but now I can’t remember how I did it.

Regards,

Jos

---

<div class="post-metadata">

**Author:** ![jos](https://forum.alumio.com/letter_avatar_proxy/v4/letter/j/2bfe46/32.png) [@jos](https://forum.alumio.com/u/jos)\
**Post date:** [May 26, 2023, 8:31am UTC](https://forum.alumio.com/t/sum-array-this-must-be-at-least-15-characters-i-guess/614/2 "2023-05-26T08:31:40Z")

</div>

To answer my own question, I just tried a jmespath solution: &{sum(test)}, and that works

---

<div class="post-metadata">

**Author:** ![Gugi](https://forum.alumio.com/user_avatar/forum.alumio.com/gugi/32/236_2.png) [@Gugi](https://forum.alumio.com/u/Gugi)\
**Post date:** [May 26, 2023, 11:22am UTC](https://forum.alumio.com/t/sum-array-this-must-be-at-least-15-characters-i-guess/614/3 "2023-05-26T11:22:21Z")

</div>

Hi @jos

We are glad to hear that you managed to find the solution using the JMESPath Built-in function.

Alternatively, you can also use “Value Mapper” and “Operator” mapper. Set the Operator to “Addition”, and you will get the sum of the values.
