[tw5] Re: Add or sum number from fields tiddler by filter
On Sunday, January 24, 2021 at 11:04:35 AM UTC-8 sil...@gmail.com wrote: > To not have link in result I've found this but I wonder if there is a > simpler solution > You can use the "filtered transclusion" syntax directly in the $text widget, like this: Total = ''<$text text={{{[tag[entretien]get[duree]sum[]]}}}/>'' -e -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/d8c1da29-0979-433a-83d3-093a9a283965n%40googlegroups.com.
[tw5] Re: Add or sum number from fields tiddler by filter
Hello Eric, Thanks for this, since it's simple than reduce operator. To not have link in result I've found this but I wonder if there is a simpler solution (or make a macro of it to choose its tag for example) : <$set name="time" value={{{ [tag[entretien]get[duree]sum[]] }}}> Total = ''<$text text=<>/>'' Otherwise after looking at the reduce Operator documentation, well I don't know how to implement it... There are some examples, but they are not complete enough for me to fully understand how to use it.. (because need to define other macro but not clear for me). Cheers, Sylvain Le dimanche 24 janvier 2021 à 14:52:09 UTC+1, Eric Shulman a écrit : > On Sunday, January 24, 2021 at 3:11:33 AM UTC-8 sil...@gmail.com wrote: > >> My need: via a tiddler filter with tag, add the numbers of a custom field >> contained in the tiddlers: in order to be able to count the time spent on a >> project. >> > > This will do the trick: > total = {{{ [tag[projectname]get[fieldname]sum[]] }}} > > * change "projectname" and "fieldname" to match your usage > > enjoy, > -e > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/8560c586-fd84-48da-9df6-bfc63fdf62d3n%40googlegroups.com.
[tw5] Re: Add or sum number from fields tiddler by filter
On Sunday, January 24, 2021 at 3:11:33 AM UTC-8 sil...@gmail.com wrote: > My need: via a tiddler filter with tag, add the numbers of a custom field > contained in the tiddlers: in order to be able to count the time spent on a > project. > This will do the trick: total = {{{ [tag[projectname]get[fieldname]sum[]] }}} * change "projectname" and "fieldname" to match your usage enjoy, -e -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/fc65abc2-cf70-4f76-af87-5f97ad9fc779n%40googlegroups.com.
[tw5] Re: Add or sum number from fields tiddler by filter
Thanks Saq, It sounds good indeed ! Le dimanche 24 janvier 2021 à 12:32:58 UTC+1, saq.i...@gmail.com a écrit : > The reduce operator in 5.1.23 should fit your needs: > > > https://tiddlywiki.com/#reduce%20Operator:%5B%5Breduce%20Operator%5D%5D%20%5B%5Breduce%20Operator%20(Examples)%5D%5D > > On Sunday, January 24, 2021 at 12:11:33 PM UTC+1 sil...@gmail.com wrote: > >> Hi, >> >> I searched this morning what exists to simply add (sum up) several >> numbers includes in fields from several tiddlers, but I'm not sure I found >> it (or how to implement it). >> >> My need: via a tiddler filter with tag, add the numbers of a custom field >> contained in the tiddlers: in order to be able to count the time spent on a >> project. >> >> A simple trick for the moment would suit me well, in sum the result would >> be 1+2+0,5+2+etc... = final counter. >> >> Thank you for your help. >> Have a good day, >> Sylvain >> > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/6f442ff2-085d-46c4-9174-39857c52ea7en%40googlegroups.com.
[tw5] Re: Add or sum number from fields tiddler by filter
The reduce operator in 5.1.23 should fit your needs: https://tiddlywiki.com/#reduce%20Operator:%5B%5Breduce%20Operator%5D%5D%20%5B%5Breduce%20Operator%20(Examples)%5D%5D On Sunday, January 24, 2021 at 12:11:33 PM UTC+1 sil...@gmail.com wrote: > Hi, > > I searched this morning what exists to simply add (sum up) several numbers > includes in fields from several tiddlers, but I'm not sure I found it (or > how to implement it). > > My need: via a tiddler filter with tag, add the numbers of a custom field > contained in the tiddlers: in order to be able to count the time spent on a > project. > > A simple trick for the moment would suit me well, in sum the result would > be 1+2+0,5+2+etc... = final counter. > > Thank you for your help. > Have a good day, > Sylvain > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/bbd6cfd9-1f82-4d6f-88db-fe14c7b72129n%40googlegroups.com.