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

2017-08-09 Thread Thomas Elmiger
Hi Uwe Try this structure to sum 4 fields in 1 macrocall: <$macrocall $name="rpn" a=<> b=<> operation="+"/> Hint: in the shortcut <> the tiddler from where to get the field value must be specified in the transclusion. All the best, Thomas Am Dienstag, 8. August 2017 16:28:44 UTC+2 schrieb Uw

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

2017-08-08 Thread Mat
Uwe wrote: > > So I have tried this with Thomas Elmigers rpn plugin, > > But how can I add the results of each of these expressions? (Has it > something to do with the listwidget you mentioned?) > Yes, listwidget. I have not tried it so I may miss something fundamental but, basically, you'd i

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

2017-08-08 Thread 'Mark S.' via TiddlyWiki
A different approach would be to use mathcell (http://mathcell.tiddlyspot.com/) that emulates spreadsheet-like abilities. 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

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

2017-08-08 Thread Uwe
So I have tried this with Thomas Elmigers rpn plugin, found here: https://tid.li/tw5/plugins.html https://tid.li/tw5/hacks.html#rpnTest <$macrocall $name="rpn" a={{!!field1}} b={{!!field2}} operation="+" 2/> <$macrocall $name="rpn" a={{!!field3}} b={{!!field4}} operation="+" 2/> It is also not

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

2017-08-08 Thread Mat
Uwe wrote: > Automatically calculating values in the fields and in the tiddler like > this example would be a great simplification: > > {{!!schnitt}}=({{!!field1}}+{{!!field2}}+{{!!field3}}+{{!!field4}})/4 > While it's not direct (i.e not optimized), it should not be overly difficult to mak

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

2017-08-08 Thread Uwe
I totally agree. Nonetheless, thanks to any contribution to this issue, maybe it helps others. Here is the solution, I made: <$fieldmangler> <$list filter="[is[current]tag[Aktiv]]"> <$button message="tm-remove-tag" param="Aktiv">¬Aktiv <$list filter="[is[current]!tag[Aktiv]]"> <

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

2017-08-04 Thread Matthew Lauber
The issue is that the assignment doesn't work like that. You can't assign to a field like that, regardless of whether it's math or text or anything else. The equals sign is just another letter when it's used in html. You'd probably need to play around with macros and the <$action-setfield> w

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

2017-08-03 Thread Thomas Elmiger
I have some links and minimalist comments in my own half solution here, at the end of the readme: https://tid.li/tw5/plugins.html#%24%3A%2Fplugins%2Ftelmiger%2Frpn No average function available here. All the best, Thomas -- You received this message because you are subscribed to the Google

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

2017-08-03 Thread Danielo Rodríguez
Sorry Josiah, I was on my mobile phone and the link was not easily reachable from here. Luckily someone has already posted the links. Both are very good plugins for math -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this g

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

2017-08-02 Thread 'Mark S.' via TiddlyWiki
Probably https://tobibeer.github.io/tb5/#calc or https://tobibeer.github.io/tw5-plugins/#eval Mark On Wednesday, August 2, 2017 at 2:13:16 PM UTC-7, @TiddlyTweeter wrote: > > Right. Its at: Where? > > I hate we can't find anything when we need it. > > Danielo Rodríguez wrote: >> >> Tobí

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

2017-08-02 Thread @TiddlyTweeter
Right. Its at: Where? I hate we can't find anything when we need it. Danielo Rodríguez wrote: > > Tobías has a good plugin for math -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails fr

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

2017-08-02 Thread Danielo Rodríguez
Tobías has a good plugin for math -- 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 to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to ti

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

2017-08-02 Thread @TiddlyTweeter
Welcome to the club of non-functioning math in TW. Its a mess of half solutions. Josiah Uwe wrote: > > 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 >