How to sum the price of items?


I still got the total spent 0

There are several problems with your blocks:

  1. You are wanting to add text to a list but you’ve added a list to the list each time you create a row. You need to remove the block that says + list -.
  2. You have a for each item loop without a list specified. You left that blank. You need to put app variable itemList there.
  3. Text and numbers are different and cannot be directly compared or used in the same way. I don’t know if rounding a text string such as “15.8” will produce what you want (16). It may just fail. But I do know that you can convert a text string to a number by adding 0 to it using a math block.

I got Total Amount Spent : NaN

Your blocks look correct to me. Could you share a link to your project? I can probably find the problem faster that way.

I don’t often use ChatGPT for Thunkable issues but this was helpful:

here you go ,
for the total amount spent i already solve by creating another google sheet just for Total amount ( a bit weird T_T)

But the problem i confuse now are delete items (the total amount spent didn’t update when i delete the item)