Summing values in fields

76 views
Skip to first unread message

Jon

unread,
Feb 13, 2020, 3:35:26 AM2/13/20
to TiddlyWiki
Hi,

is it possible to sum the values held in Field A wherever the field exists, or do the individual tiddlers where it does appear, need to be referenced?

Regards
Jon

Eric Shulman

unread,
Feb 13, 2020, 4:11:37 AM2/13/20
to TiddlyWiki
On Thursday, February 13, 2020 at 12:35:26 AM UTC-8, Jon wrote:
is it possible to sum the values held in Field A wherever the field exists, or do the individual tiddlers where it does appear, need to be referenced?

Using filters, you can write:
<$list filter="[get[A]sum[]]" />

The get[A] operator retrieves a list of all values from all tiddlers that have a field named "A".
Then, the sum[] operator adds up all the retrieved values.

-e

Mohammad

unread,
Feb 13, 2020, 6:43:44 AM2/13/20
to TiddlyWiki
Jon
 Take a look at Shiraz Plugin 2.0.16

It has some great features for performing simple calculation on filed values!

--Mohammad

Mohammad

unread,
Feb 13, 2020, 6:49:57 AM2/13/20
to TiddlyWiki
a small side note: TW fields are in lower case! 

-e

Jon

unread,
Feb 13, 2020, 1:54:11 PM2/13/20
to TiddlyWiki
Thanks Eric, I really am going to have to start learning this stuff!

And thanks Mohammad, I can see your plugin is going to be invaluable.

Regards
Jon
Reply all
Reply to author
Forward
0 new messages