# Calculate the total amount

**URL:** <https://community.thunkable.com/t/calculate-the-total-amount/563331>\
**Category:** Questions about Thunkable X\
**Created:** [April 13, 2020, 7:18pm UTC](https://community.thunkable.com/t/calculate-the-total-amount/563331 "2020-04-13T19:18:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gigiching42pvu](https://avatars.discourse-cdn.com/v4/letter/g/45deac/32.png) [@gigiching42pvu](https://community.thunkable.com/u/gigiching42pvu)\
**Post date:** [April 13, 2020, 7:18pm UTC](https://community.thunkable.com/t/calculate-the-total-amount/563331/1 "2020-04-13T19:18:29Z")

</div>

I stored the price and quantity information in the Airtable and I want to calculate the grand total of the products.

I created two lists to store the price and quantity from the airtable respectively

app individual price stores the price from airtable  
app individual quantity stores the quantity from airtable

And i tried to multiply them and sum it up. However, it fails to show in the label.

the result that i want is: 13_1+55_1+27_1+13.9_1+…

Thank you!!

 ![Screenshot 2020-04-14 at 2.52.03 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/4/14a5c56090b03343446875046765a2b4d06df29c.png) ![Screenshot 2020-04-14 at 2.52.47 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/e/6e770b2633854ceda3ce33c2330dc888d1568de7.png) ![Screenshot 2020-04-14 at 2.53.09 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/e/9ebae0f64c847f02dbd09974c739c896ef141798.png)

---

<div class="post-metadata">

**Author:** ![samclever](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@samclever](https://community.thunkable.com/u/samclever)\
**Post date:** [April 14, 2020, 1:18am UTC](https://community.thunkable.com/t/calculate-the-total-amount/563331/2 "2020-04-14T01:18:15Z")

</div>

Have you tried storing your data into lists before running the ForEach block? Im curious if its erasing the previous list information which wouldnt allow it to calculate.

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [April 14, 2020, 12:33pm UTC](https://community.thunkable.com/t/calculate-the-total-amount/563331/3 "2020-04-14T12:33:04Z")

</div>

does it show anything in the label?

also, with your grand total in the loop, it wont accumulate values. it iwll instead hold the last value of the last computtation performed.

---

<div class="post-metadata">

**Author:** ![gigiching42pvu](https://avatars.discourse-cdn.com/v4/letter/g/45deac/32.png) [@gigiching42pvu](https://community.thunkable.com/u/gigiching42pvu)\
**Post date:** [April 14, 2020, 5:27pm UTC](https://community.thunkable.com/t/calculate-the-total-amount/563331/4 "2020-04-14T17:27:28Z")

</div>

@samclever  
@jared  
Success!!! it shows the grand total for me.  
Thanks!!!

---

<div class="post-metadata">

**Author:** ![samclever](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@samclever](https://community.thunkable.com/u/samclever)\
**Post date:** [April 15, 2020, 6:23am UTC](https://community.thunkable.com/t/calculate-the-total-amount/563331/5 "2020-04-15T06:23:17Z")

</div>

What did you do to solve it? Could you show your blocks so others might be able to learn from it?

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 11:38am UTC](https://community.thunkable.com/t/calculate-the-total-amount/563331/6 "2024-11-08T11:38:59Z")

</div>


