Get Total Value From firebase!

I have data in firebase! I want to get sum of total from (Total Sqft) get total|427x500:

please help me someone!

1 Like

I added the image you linked to so that it appears in the post.

You can learn how to loop through Firebase data and sum values here:

Source: I Googled loop sum Firebase Thunkable and the link above was the first result.

Welcome to Thunkable.

The only way is to loop through the data in your Firebase database and sum the required values. See the example in the post shared by @tatiang

Thanks your replay sir,
I tried same as your blocks but small error is there please help me I will add photos.



Thanks

1 Like

When doing math operations, you need to be sure that values are numeric type. To do that, just use math block +0 to convert any text value that looks as a number to a number.
As I see it from your first screen, values are kept as text in Firebase (" are there).
Example: 1=“1”+0
Your result looking as a large number with dots between is just a concatenated text there, for the reason I explained.

2 Likes

Save the values to the list this way

This will force the values stored as text to be converted to numbers and the sum will work.

1 Like

Great Sir it’s Working Properly Very Big Thanks Sir.

2 Likes

Glad it worked for you.

1 Like