Historical balance

43 views
Skip to first unread message

Jun Furukawa

unread,
Sep 15, 2020, 7:48:01 PM9/15/20
to Ledger
I have one thing that I can’t find a good way to do this.

‘ledger b bankname’ will show the latest balance of the asset, but I want to get a list of ending balance for each month (not sum of cash in and out)
What I want to get is some like:
20-Jun-01 - 20-Jun-30.. ..           100
20-Jul-01 - 20-Jul-31.. ..              110
20-Aug-01 - 20-Aug-31.. ..           112
20-Sep-01 - 20-Sep-30.. ..           108

hledger can do this some like this, but I want to get vertical output not horizontal.
hledger b bank name -M --historical # shows numbers horizontally

John Wiegley

unread,
Sep 15, 2020, 9:16:16 PM9/15/20
to Jun Furukawa, Ledger
>>>>> "JF" == Jun Furukawa <junni...@gmail.com> writes:

JF> I have one thing that I can’t find a good way to do this.
JF> ‘ledger b bankname’ will show the latest balance of the asset, but I
JF> want to get a list of ending balance for each month (not sum of cash
JF> in and out)
JF> What I want to get is some like:
JF> 20-Jun-01 - 20-Jun-30.. .. 100
JF> 20-Jul-01 - 20-Jul-31.. .. 110
JF> 20-Aug-01 - 20-Aug-31.. .. 112
JF> 20-Sep-01 - 20-Sep-30.. .. 108

Isn't this exactly what `ledger reg --collapse -M bankname` would show you?

JOhn

Jun Furukawa

unread,
Sep 16, 2020, 6:24:33 PM9/16/20
to Ledger
Yes `ledger reg --collapse -M bankname` worked for me, I realized it gives cash in/out and then its running balance at the last column which is ending balance of the month. Thanks!
Reply all
Reply to author
Forward
0 new messages