Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Balance Filter

24 views
Skip to first unread message

lipp f

unread,
Jan 29, 2025, 3:09:11 PMJan 29
to Ledger
I would like to include in a ballance result only accounts where current balance is above 100CAD.

tryed:
  • bal  'expr abs(quantity) > 100CAD' --real
  • bal --amount --real --value-expr 'if(abs(quantity) > 100CAD, amount, null)'
  • bal --limit 'amount > 100CAD'
and none of them seems to produce a correct result

Any ideea?

david whiting

unread,
Jan 30, 2025, 2:12:43 AMJan 30
to ledge...@googlegroups.com
Does this work for you?

bal --limit 'display_total > 100'  -X CAD

David

--

---
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 ledger-cli+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ledger-cli/76849151-7a6b-415a-bd56-097c93132e1dn%40googlegroups.com.


--
David Whiting

david whiting

unread,
Jan 30, 2025, 2:23:01 AMJan 30
to ledge...@googlegroups.com
I'm getting some weird results with this depending on what value I use for the total, so this probably doesn't do what you need.

David
--
David Whiting

lipp f

unread,
Jan 30, 2025, 2:06:27 PMJan 30
to Ledger
not working for me either. Includes all possible accounts and gives me a balance of CAD 20,350,323.46 and it should be about  CAD 710,000

John Wiegley

unread,
Feb 5, 2025, 2:11:30 PMFeb 5
to david whiting, ledge...@googlegroups.com
>>>>> "dw" == david whiting <david.r...@gmail.com> writes:

dw> Does this work for you?
dw> bal --limit 'display_total > 100'  -X CAD

I think you might want ‘--display’.

‘--limit’ filters which items are computed as part of the totals, while
‘--display‘ filters which items are shown. They can also be used together.

John
Reply all
Reply to author
Forward
0 new messages