Ok. I'll file a doc bug then. The manual explicitly gives average of a balance as an example.
On Saturday, June 2, 2018 at 6:50:09 PM UTC-5, Norman Walsh wrote: > > Hi, > > I've been happily using ledger-cli for years, but I'm sure I hardly > scratch the surface of what it can do. Every now and then, I get an idea to > see if I can learn to use more of it. Today's thought was "would having a > budget be useful?" > > So I go digging through the docs and I come to this example of how to get > the current monthly average expenses: > > $ ledger -p "this year" --monthly --average balance ^expenses > > But the numbers don't make any sense. My average rent is apparently > $99.55!? > > After poking around a bit, I decide to make a small test document so that > I can understand what's going on: > > ; -*- ledger -*- > > Y2017 > > 12/02 Acme Apartments > Expenses:Rent $1000.00 > Assets:Checking > > Y2018 > > 01/02 Acme Apartments > Expenses:Rent $1000.00 > Assets:Checking > > 02/02 Acme Apartments > Expenses:Rent $1000.00 > Assets:Checking > > 03/02 Acme Apartments > Expenses:Rent $1000.00 > Assets:Checking > > 04/02 Acme Apartments > Expenses:Rent $1000.00 > Assets:Checking > > 05/02 Acme Apartments > Expenses:Rent $1000.00 > Assets:Checking > > 06/02 Acme Apartments > Expenses:Rent $1000.00 > Assets:Checking > > But I'm none the wiser. > > $ ledger -f FakeLedger --monthly --average balance ^expenses > $500.00 Expenses:Rent > > That makes no sense. And adding -p "this year" only makes it worse: > > $ ledger -f FakeLedger -p "this year" --monthly --average balance > ^expenses > $125.00 Expenses:Rent > > I've tried all sorts of things, some of which make the numbers change. But > clearly I am missing something fundamental. > > Help? > > -- --- 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]. For more options, visit https://groups.google.com/d/optout.
