* Martin Michlmayr <
t...@cyrius.com> [2020-12-29 21:09]:
> reg Expenses:Entertainment:Streaming -l "any(account =~ /Liabilities:Credit Card:VISA/)"
>
> > I tried using the -r and --limit option, but it did not work.
>
> No, you need: any(account =~ /.../)
Just to make this clearer. Let's say you have a transaction with two
postings, accounts A and B.
reg A --related/-r *shows* the other account (B), but the query is on A
with any(), you query on A (reg A), but you can additionally require
that at least one account in the transaction involves B.