Thank you all for the suggestions! Much appreciated.
Best,
Hubert
On Tuesday, 19 June 2018 16:22:12 UTC+1, Stobot wrote:
>
> I agree - a sum[] filter operator would be hugely valuable! I like the
> plugin but it's often overkill for simple needs. sum[] should be core in my
> opinion.
>
--
I agree - a sum[] filter operator would be hugely valuable! I like the
plugin but it's often overkill for simple needs. sum[] should be core in my
opinion.
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop
The macros are in
$:/plugins/mas/formula/functions/aggregation
You're right -- a "sum" filter seems like a useful thing and wouldn't be
too hard to write. I suppose someone has already done it ...
-- Mark
On Monday, June 18, 2018 at 9:35:06 PM UTC-7, TonyM wrote:
>
> Mark,
>
> I am keen to
Mark,
I am keen to see these macros you refer to can you tell me the tiddler
names in http://carbocommander.tiddlyspot.com/ ?
Also, I would love to find a way to do sums without needing to bring in the
formulas plugin as it is somewhat overkill.
I may put a request in for a sum[] filter
\define count-items(filter) <$list filter="$filter$ +[count[]]" variable=
result><>
\define sum-field(fieldname,filter)
<$set name=filter value="$filter$" emptyValue="[has:field[$fieldname$]]">
(= sum([has[$fieldname$]] +[get[$fieldname$]]) =)
\end
You provide the count items with a filter and
Post Script,
I just started to investigate using Evans Formula plugin and it permits the
provision of filters into the sum, so you do not need a list
eg;
(= sum([tag[Expenses]get[value]]) =)
so perhaps this would work to return the number
(= sum([[_data]getindex[$(matching_indexes)$]])+5
hubertgk,
When you say "sum that with 5" I presumed you mean add 5 to the single
number found for each item in your output list, because you are calling
Test2 every items.
I think if I understand correctly You need to divide the problem into two
steps. One sum the value of each list item
The SetWidget now has a filter option. I seem to recall that the output is
as an array. Perhaps you could replace the <$list> with a <$set> ?
For CarboCommander (http://carbocommander.tiddlyspot.com/) I added a couple
macro's to Evan's kit to allow the aggregation of numbers into variables.
It
8 matches
Mail list logo