Thank you CJ, this solution indeed works as well! I enjoyed following along step by step the construction of the final filter and feel that your idea of "duplicating" each title at the beginning will be another useful technique that I can utilize when needed. 0 tiistai 14. syyskuuta 2021 klo 3.47.40 UTC+3 cj.v...@gmail.com kirjoitti:
> Arg. Please ignore the macro "theCount". That was part of an initial > plan that I tossed aside. > > On Monday, September 13, 2021 at 9:44:38 PM UTC-3 Charlie Veniot wrote: > >> Oh yeah, forgot to attach sample related tiddlers in case anybody wants >> to dive into that and play. >> >> >> >> On Monday, September 13, 2021 at 9:40:32 PM UTC-3 Charlie Veniot wrote: >> >>> Although I figure most folk will understand Eric's nice solution, I'll >>> throw mine here anyway, for the giggles. >>> >>> If anything, you'll see clues that this old sponge of mine operates >>> pretty much way out in left field, or the far side ... >>> >>> Assuming that the negative sign is included with the number in every >>> frequency field ... >>> >>> What we have here, folks, is a dynamically created filter, which totally >>> gets my geek mojo going: >>> >>> \define bL2() [[ >>> \define midPart() ]!days:last-contact{ >>> \define lastPart() !!frequency}] >>> \define theCount() +[count[] >>> >>> ! The result >>> >>> <$vars thisFilter={{{ [has[frequency]sort[]addsuffix[::]] >>> [has[frequency]sort[]addsuffix[,]] +[sort[]] +[join[]] +[split[::]] >>> +[butlast[]] +[addprefix<bL2>] +[search-replace[,],<midPart>] >>> +[addsuffix<lastPart>] +[join[ ]] }}}> >>> >>> Count of items: <$count filter=<<thisFilter>>/> >>> >>> <$list filter=<<thisFilter>>> >>> >>> </$list> >>> >>> </$vars> >>> >>>> >>>>> -- 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/b49ac312-a46a-475a-85be-1181c9867352n%40googlegroups.com.