Hi Norman,

Norman Walsh <[email protected]> writes:

> 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!?

The short answer is that --average doesn't work with the balance
command; it only works with the register command.

Do you get more sensible results with a command like this?

ledger -p "this year" --monthly --average reg 'expenses:Groceries$' 

(Another gotcha: --average also seems to interact badly with
subaccounts, which is why I have the '$' in there.)

FWIW, I think hledger is able to do averages with the balance command,
and I find its output much more intuitive and useful, so you could try
that.

-- 
Best,
Richard

-- 

--- 
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.

Attachment: signature.asc
Description: PGP signature

Reply via email to