Hi JJ, On Wednesday, June 30, 2021 at 6:18:58 AM UTC-5 JJ wrote:
> Now I'd like to create a table, which shows me the People I talked to with > the amount of conversations I had with them. Sometimes, the conversation is > with more than one person, so I write two names in the contact-field, like > "PersonOne PersonTwo". I understood that separating those, I should use the > enlist-operator. > I don't see you using the enlist operator in the snippet above? Anyway, I would use contains <https://tiddlywiki.com/#contains%20Operator>, not *enlist* – it's possible to do it with *enlist*, but makes things unnecessarily trickier. > I tried the following, but I cannot find out, what to write in the space > marked with ????. If I try to enter one Persons name manually, the correct > count shows up in all rows, as expected. Somehow, I need to reference the > currentTiddler, but I don't know how. > You need to use a *soft parameter* with <> or {} instead of [], which fill in the value of a variable or field respectively. So your filter would look like: [tag[Conversation]contains:contact<currentTiddler>] Or equivalently: [tag[Conversation]contains:contact{!!title}] See Filters and Transclusions <https://groktiddlywiki.com/read/#Filters%20and%20Transclusions> for more on this. It's worth noting you can take advantage of the $count widget and some default parameters of $link to simplify all this: <$list filter="[tag[Person]sort[caption]]"> <tr> <td><$link /></td> <td><$count filter="[tag[Conversation]contains:contact<currentTiddler>]"/></td> </tr> </$list> (But did you really want the title to display for each person after you sorted by the caption? You might prefer: <td><$link to={{!!title}}><$transclude field="caption">{{!!title}}</$transclude></$link></td> ...which will show the caption if it exists and the title otherwise, linking to the title in either case.) -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/7f9762a1-5ba9-4e3d-8c5c-d88ed5b04bf0n%40googlegroups.com.

