Hi all,
I try to follow the example from the manual and compute average monthly
expenses. Here is my example journal file:
--8<---------------cut here---------------start------------->8---
2022-01-01 Food
Expenses:Food 930.00 PLN
Assets:Cash
2022-02-01 Food
Expenses:Food 800.00 PLN
Assets:Cash
2022-03-01 Food
Expenses:Food 970.00 PLN
Assets:Cash
--8<---------------cut here---------------end--------------->8---
and here is what I do in command line:
--8<---------------cut here---------------start------------->8---
ledger -b 2022-01-01 -e 2022-04-01 --monthly --average balance -f myfile
-450.00 PLN Assets:Cash
450.00 PLN Expenses:Food
--------------------
0
--8<---------------cut here---------------end--------------->8---
What is going on here? (Obviously, I expected 900 PLN monthly average.)
Even more unexpectedly, when I use -p "last year", the result is exactly
the same (and I would expect 300 PLN then).
I use Ledger 3.2.1-20200518.
TIA,
--
Marcin Borkowski
http://mbork.pl
--
---
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/87y1pton9k.fsf%40mbork.pl.