Hi Gour,

At Thu, 25 Sep 2014 19:40:25 +0200,
Gour wrote:
> 
> On Thu, 25 Sep 2014 10:01:59 -0700
> Erik Hetzner <[email protected]> wrote:
> 
> > 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) : ''"
> 
> Thanks a lot. Very useful and another obstacles removed in my gnucash
> --> ledger migration. ;)
> 
> I'd say such things should go into FAQ and/or manual.

I should clarify that the above is a bit of a hack and will only work
if you are averaging starting at the beginning of the year until now,
because it divides by the number of the current month.

If somebody has a better way to do it I would love to know. Am I the
only person who wants to know what my average spending in a category
is per month?

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