How to calculate the values of an array?

Check this:

I want to sum the “amount” value of each item in the array. The array limit will be 5 items, however there will not always be 5 items. In that case, I need to take the full value of it.

Hi.
There is a SUM formatter. It works something like get_orderbumps_adquired.sum('amount').

1 Like

i’m solved with another form. Thaanks for your time.