# How to sum value of multiple collections

**URL:** <https://community.make.com/t/how-to-sum-value-of-multiple-collections/63562>\
**Category:** Questions\
**Tags:** arrays, aggregators, bundles\
**Created:** [December 9, 2024, 6:11pm UTC](https://community.make.com/t/how-to-sum-value-of-multiple-collections/63562 "2024-12-09T18:11:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emmanuel1](https://avatars.discourse-cdn.com/v4/letter/e/d2c977/32.png) [@Emmanuel1](https://community.make.com/u/Emmanuel1)\
**Post date:** [December 9, 2024, 6:11pm UTC](https://community.make.com/t/how-to-sum-value-of-multiple-collections/63562/1 "2024-12-09T18:11:53Z")

</div>

![make](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/d/b/dbc58278c5a59f41b610ffc6b36a5d2c37541a81.png)

Hello, I make the call to this API and it returns these collections, what I want to achieve is that of the n number of collections that the API sends as a response, to sum the value of ‘cantidad\_disponible’ in a single variable so it returns that value in a variable, I have been trying but I can’t, any idea how I could do it? Thank you

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [December 10, 2024, 1:07am UTC](https://community.make.com/t/how-to-sum-value-of-multiple-collections/63562/2 "2024-12-10T01:07:54Z")

</div>

Welcome to the Make community!

> [@Emmanuel1](#):
>
> I want to achieve is that of the n number of collections that the API sends as a response, to sum the value of ‘cantidad\_disponible’ in a single variable so it returns that value in a variable

If I understand your question correctly, you want to know how many items are in the `arreglo_respuestas` array?

You can use the built-in function `length`

e.g.:

```plaintext
{{ length(8.arreglo_respuestas) }}

```

For more information, see the [length function](https://www.make.com/en/help/functions/array-functions.html#length-array-) documentation in the [Help Center](https://www.make.com/en/help).

Hope this helps! Let me know if there are any further questions or issues.

— @samliew

P.S.: Investing some effort into the [Make Academy](https://academy.make.com) will save you lots of time and frustration using Make.

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [December 10, 2024, 1:10am UTC](https://community.make.com/t/how-to-sum-value-of-multiple-collections/63562/3 "2024-12-10T01:10:55Z")

</div>

Here are some useful links and guides you can use to learn more on how to use the Make platform, apps, and app modules. I found these useful when I was learning Make, and hope they might benefit you too —

### Getting Started

- [Help Centre](https://www.make.com/en/help) | [Tutorials](https://www.make.com/en/help/tutorials.html) – Make “Manual”
- [Make Academy](https://academy.make.com) – Basics 101: Learn Make and get certified

### Help Centre Basics

- [Mapping](https://www.make.com/en/help/mapping/mapping) – What is mapping? What can I map?
- [Mapping with arrays](https://www.make.com/en/help/mapping/mapping-arrays) – How to map items in an array
- [Aggregate an array for mapping complex fields](https://www.make.com/en/help/tools/flow-control#customizing-the-output)
- **Date Format** : [tokens for `parseDate`](https://www.make.com/en/help/functions/tokens-for-date-time-parsing) | [tokens for `formatDate`](https://www.make.com/en/help/functions/tokens-for-date-time-formatting)
- [HTTP modules](https://www.make.com/en/help/tools/http) – Make a request, Get (download) a file
- [Webhooks](https://www.make.com/en/help/tools/webhooks) – Error Handling, Responding to webhooks

### Articles & Videos

- [Router Magic Formula](https://www.youtube.com/watch?v=4Q-5BsCtJu4) - YouTube
- [Error Handlers in Make](https://www.youtube.com/playlist?list=PLRE9E-rAD8U10mx2TRs54Nq1XJDdK9Kx4) - YouTube playlist
- [Getting started with OpenAI](https://community.make.com/t/getting-started-with-openai-gpt-3-and-make/7796) - How to setup and use OpenAI (ChatGPT) in Make
- [How to use Regex in Make](https://community.make.com/t/how-to-use-regex-in-make/202) - How to use pattern matching to extract the text you want
- [Webhooks – Make Academy](https://academy.make.com/courses/IntermediateC04) – tutorial on how to use Webhooks

---

<div class="post-metadata">

**Author:** ![Msquare\_Automation](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/msquare_automation/32/6634_2.png) [@Msquare\_Automation](https://community.make.com/u/Msquare_Automation)\
**Post date:** [January 11, 2025, 6:08am UTC](https://community.make.com/t/how-to-sum-value-of-multiple-collections/63562/4 "2025-01-11T06:08:03Z")

</div>

Hi @Emmanuel1

Please use {{map(flatten(map(arregio\_respuastas;‘cantidad\_disponible));your variable of the value here)}}

**Regards,**  
_Msquare Automation - Platinum Partner of Make_  
@Msquare_Automation

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [January 28, 2025, 6:45pm UTC](https://community.make.com/t/how-to-sum-value-of-multiple-collections/63562/5 "2025-01-28T18:45:34Z")

</div>


