# Sum of function

**URL:** <https://community.triggre.com/t/sum-of-function/43>\
**Category:** Support\
**Created:** [October 14, 2021, 10:01am UTC](https://community.triggre.com/t/sum-of-function/43 "2021-10-14T10:01:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Albert.wemmers](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@Albert.wemmers](https://community.triggre.com/u/Albert.wemmers)\
**Post date:** [October 14, 2021, 10:01am UTC](https://community.triggre.com/t/sum-of-function/43/1 "2021-10-14T10:01:24Z")

</div>

Hi,

I have been working on visualizing data from a schedule using the “sum of” build-in function.

Within a loop that counts the days of a year, I check how many weeks already exist also every Monday I create a new week. To check, the application uses the build-in function: “sum of” with the id. My question is: does the function sum the number of ids that exist or sum the numbers of all the ids. for example, the function calculates how many ids there are (1+1+1+1+1) or all the ids combined (1+2+3+4+5)?

I hope my question is clear!

Kind regards,

Albert Wemmers

---

<div class="post-metadata">

**Author:** ![Eddie](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.triggre.com/eddie/32/89_2.png) [@Eddie](https://community.triggre.com/u/Eddie)\
**Post date:** [October 18, 2021, 2:19pm UTC](https://community.triggre.com/t/sum-of-function/43/2 "2021-10-18T14:19:19Z")

</div>

Hi Albert,  
Sum of A will add them all up, so 1+2+3+4+5  
If you want to count the number of items you can use the function Count items in list A (almost at the bottom of the list when you select a function).

We also have some articles in our knowledge base regarding dates and number:

- [Conversions between numbers, texts and dates](https://www.triggre.com/knowledge-base/tips-tricks/data-tips/conversions-between-numbers-texts-and-dates)
- [How to calculate age](https://www.triggre.com/knowledge-base/tips-tricks/flows/how-to-calculate-age)

If you need additional help, please let me know.

---

<div class="post-metadata">

**Author:** ![Albert.wemmers](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@Albert.wemmers](https://community.triggre.com/u/Albert.wemmers)\
**Post date:** [October 19, 2021, 11:02am UTC](https://community.triggre.com/t/sum-of-function/43/3 "2021-10-19T11:02:10Z")

</div>

Ah this explains my problems, thank you!

---

<div class="post-metadata">

**Author:** ![Jesse](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.triggre.com/jesse/32/88_2.png) [@Jesse](https://community.triggre.com/u/Jesse)\
**Post date:** [October 24, 2023, 1:53pm UTC](https://community.triggre.com/t/sum-of-function/43/4 "2023-10-24T13:53:12Z")

</div>


