net assets over time period

32 views
Skip to first unread message

Rob Pyott

unread,
Mar 12, 2023, 5:28:35 PM3/12/23
to ledge...@googlegroups.com
Hello, what would be the command to get the net "bal" output over a
certain period? (Right now I use the bal "assets" "liabilities"
command, which gives the net balance. I would like to have that net
figure over a period of months.) Thank you!

Tobias Pfeiffer

unread,
Mar 12, 2023, 7:36:08 PM3/12/23
to ledge...@googlegroups.com
Hi,
*Maybe* you could achieve what you want using `reg --monthly`?

In my case, this didn't work well because I want to have the commodity
prices that change over time reflected in the report as well. At the
moment I am running

$ ledger bal -X <curr> -p "until 2022-10" --now 2022-10-31
$ ledger bal -X <curr> -p "until 2022-11" --now 2022-11-30 $ ledger bal -X <curr> -p "until 2022-12" --now 2022-12-31
$ ledger bal -X <curr> -p "until 2023-01" --now 2023-01-31
...

to get balance changes over time. There is a parameter called
--historical but I found that for me the combination of --historical
and --monthly doesn't work well:
https://groups.google.com/g/ledger-cli/c/0cOErNU1Dr4/m/r7MZjamtDAAJ

Kind regards
Tobias

signature.asc

Albert R. Pyott

unread,
Mar 16, 2023, 7:33:54 PM3/16/23
to ledge...@googlegroups.com
On Mon, Mar 13, 2023 at 08:35:54AM +0900, Tobias Pfeiffer wrote:
> Hi,
>
> Am Sonntag, den 12.03.2023, 17:28 -0400 schrieb Rob Pyott:
> > Hello, what would be the command to get the net "bal" output over a
> > certain period? (Right now I use the bal "assets" "liabilities"
> > command, which gives the net balance. I would like to have that net
> > figure over a period of months.) Thank you!
> >
>
> *Maybe* you could achieve what you want using `reg --monthly`?

This worked pretty well for me, thank you! (I will aim to tweak a bit...)
>
> In my case, this didn't work well because I want to have the commodity
> prices that change over time reflected in the report as well. At the
> moment I am running
>
> $ ledger bal -X <curr> -p "until 2022-10" --now 2022-10-31
> $ ledger bal -X <curr> -p "until 2022-11" --now 2022-11-30 $ ledger bal -X <curr> -p "until 2022-12" --now 2022-12-31
> $ ledger bal -X <curr> -p "until 2023-01" --now 2023-01-31
> ...
>
> to get balance changes over time. There is a parameter called
> --historical but I found that for me the combination of --historical
> and --monthly doesn't work well:
> https://groups.google.com/g/ledger-cli/c/0cOErNU1Dr4/m/r7MZjamtDAAJ
>
> Kind regards
> Tobias
>
> --
>
> ---
> 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 on the web visit https://groups.google.com/d/msgid/ledger-cli/65ad0b43969b4fd62fa88667c3d31740f37a5377.camel%40web.de.


Reply all
Reply to author
Forward
0 new messages