Hello,

I'm trying to compute the monthly average of my expenses since I've
started using ledger. I must be doing something wrong because the
results I get are very different from the one I compute manually.

According to the manual, to get a yearly average, I need to run

ledger -p "this year" --monthly --average balance ^expenses

Since I started using ledger at the beginning of March, and I don't want
to take the current month into account, here is what I tried:

ledger -f ~/Documents/Org/mescomptes.ledger -p 'from 2014-03-01 to this month' 
--average --monthly bal ^expenses

Unfortunately, it seems to return not the monthly average, but a mix of
monthly average and the transaction average (sum of every transaction
divided by the number of transactions).

Digging a little deeper, I notice that

ledger -f ~/Documents/Org/mescomptes.ledger -p 'from 2014-03-01 to today' 
--monthly bal ^expenses

and

ledger -f ~/Documents/Org/mescomptes.ledger -p 'from 2014-03-01 to today' bal 
^expenses

return the same thing, as if the "--monthly" option was not taken into account.

Am I doing something wrong?

Thanks,

Alan

-- 

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

Reply via email to