Hi all,

At Thu, 25 Sep 2014 10:10:49 -0500,
John Wiegley wrote:
> 
> >>>>> Gour  <[email protected]> writes:
> 
> > "For help on finding out what your average monthly expenses are for any
> > category, use a command like:"
> 
> > $ ledger -p "this year" --monthly --average balance ^expenses
> 
> I strongly recommend avoiding the balance command with --average, but to use
> --monthly --average register instead.

This is what I came up with to get average monthly expenses over a
time period.

  ledger bal ^Expenses -E -p "monthly from 2014 until this month" 
--display-total "(display_total>0 or display_total<0) ? 
display_total/(to_int(format_datetime(d, '%m')) - 1) : ''"

If somebody has a better solution I'd love to know!

best, Erik

-- 
Sent from my free software system <http://fsf.org/>.

-- 

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