# [tw] Re: How to calculate (sum, avg) with fields and store the result in an other field?

```A different approach would be to use mathcell
```
Good luck,
Mark

On Wednesday, August 2, 2017 at 1:05:14 PM UTC-7, Uwe wrote:
>
> Hello dear helpers,
>
> in some tiddlers I have some (< 20) fields with numbers in them, ie
> {{!!field1}}=2, {{!!field2}}=4 and {{!!field3}}=5 and so on.
>
> I imported \$:/plugins/mklauber/math.js
> <http://mklauber.github.io/tiddly-mathjs/#%24%3A%2Fplugins%2Fmklauber%2Fmath.js>
>
> from http://mklauber.github.io/tiddly-mathjs/
>
> Using <\$calc>, I *cannot *add the sum of these three fields
> {{!!field4}}=<\$calc>{{!!field1}} + {{!!field2}} + {{!!field3}}</\$calc> into
> field4.
> What went wrong?
>
> I need a solution for automatically calculating with the values of my
> fields (+, -, *, :, percent, average) and to store the result in an other
> named field. Is there such a solution out there? (Statistical values
> calculated about all tiddlers with these fields would be great.)
>
> The use case is to calculate the average points of students they got in
> some tests (and to get the average of all students).
>
> Greetings,
>
> Uwe
>
>
>
>
>
>

--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email