On Oct 6, 2014, at 12:49 PM, Erik Hetzner <[email protected]> wrote: > Good point, though I still get the wrong answer: > > $ ledger reg -MAE '^expenses:erik:bicycle$' -p "from 2014 until last month" > -f finances/ledger.lgr > 14-Jan-01 - 14-Jan-31 Expenses:Erik:Bicycle $22.00 > $22.00 > 14-Feb-01 - 14-Feb-28 Expenses:Erik:Bicycle $23.07 > $22.54 > 14-Mar-01 - 14-Mar-31 Expenses:Erik:Bicycle $37.24 > $27.44 > 14-Apr-01 - 14-Apr-30 Expenses:Erik:Bicycle $157.00 > $59.83 > 14-May-01 - 14-May-31 <None> 0 > $47.86 > 14-Jun-01 - 14-Jun-30 <None> 0 > $39.88 > 14-Jul-01 - 14-Jul-31 Expenses:Erik:Bicycle $28.33 > $38.23 > > This seems to be because I had no bike related expenses in the last 2 > months of the period (August and September), so the average is not > taking those months into account.
Ah, another h/ledger difference. With -E, hledger register -M includes leading/trailing empty months, as well as empty months in the middle. Thanks Erik. I think we can conclude there's still room for improvement in reporting averages, in ledger and hledger. -- --- 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.
