> "MB" == Marcin Borkowski writes:
MB> Thanks for the answer, but that still does not explain the "450" figure
MB> for me. Of course, the total is 2700, so I assume Ledger divided it by 6
MB> -- but why 6?
Hmmm.. good question, I wonder where that count is coming from.
MB> (Also, since
Marcin Borkowski writes:
>> Average just takes the number of entries in a group, and divides the total by
>> the count. Here's the implementation:
What about the last time group where the expenses may not yet represent
the value at the end of the month?
P.S. I am wondering why I am only seeing
On 2023-01-24, at 01:06, John Wiegley wrote:
>> o1bigtenor writes:
>
>> That - sir - - - -begs the question - - - what is 'average' supposed to do?
>
> Average just takes the number of entries in a group, and divides the total by
> the count. Here's the implementation:
>
>
> o1bigtenor writes:
> That - sir - - - -begs the question - - - what is 'average' supposed to do?
Average just takes the number of entries in a group, and divides the total by
the count. Here's the implementation:
OPTION_(report_t, average, DO() { // -A
OTHER(empty).on(whence);
On Mon, Jan 23, 2023 at 4:58 PM John Wiegley wrote:
>
> > "MB" == Marcin Borkowski writes:
>
> MB> What is going on here? (Obviously, I expected 900 PLN monthly average.)
> MB> Even more unexpectedly, when I use -p "last year", the result is exactly
> MB> the same (and I would expect 300 PLN
> "MB" == Marcin Borkowski writes:
MB> What is going on here? (Obviously, I expected 900 PLN monthly average.)
MB> Even more unexpectedly, when I use -p "last year", the result is exactly
MB> the same (and I would expect 300 PLN then).
I'm not sure that "--average" has ever done what
On 2023-01-23, at 21:12, Stanko Trček wrote:
> How about this ?
>
> ledger -f data.txt --monthly --average register Expenses
Ah, I think this works. I'll perform a few more experiments. Thanks!
Best,
--
Marcin Borkowski
http://mbork.pl
--
---
You received this message because you
How about this ?
ledger -f data.txt --monthly --average register Expenses
ponedeljek, 23. januar 2023 ob 06:04:08 UTC+1 je oseba Marcin Borkowski
napisala:
> Hi all,
>
> I try to follow the example from the manual and compute average monthly
> expenses. Here is my example journal file:
>
>
Hi all,
I try to follow the example from the manual and compute average monthly
expenses. Here is my example journal file:
--8<---cut here---start->8---
2022-01-01 Food
Expenses:Food 930.00 PLN
Assets:Cash
2022-02-01 Food