* Martin Michlmayr <[email protected]> [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.

-- 
Martin Michlmayr
https://www.cyrius.com/

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" 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/ledger-cli/20201229132533.GD17251%40jirafa.cyrius.com.

Reply via email to