Grouping by account and total by month

38 views
Skip to first unread message

Nothing ToSee

unread,
Apr 17, 2024, 4:01:56 AMApr 17
to Ledger

How to make ledger-cli to group-by 'account' and display total monthly expenses simultaneously?

When I try to run this command: ledger --pedantic -f journal.lgr reg expenses -b 2023-01-01 -X USD --no-revalued --group-by 'account' -M , the transactions are grouped by account, but they are repeated in each account starting from the second group.


| Expenses:Apparel |
| 23-Jan-01 -  23-Jan-31 | Expenses:Apparel |  18.80 | USD |  18.80 | USD |
| 23-Feb-01 -  23-Feb-28 | Expenses:Apparel |  26.71 | USD |  44.87 | USD |

| Expenses:Broker  |
| 23-Jan-01 -  23-Jan-31 | Expenses:Apparel |  18.80 | USD |  18.80 | USD |
| 23-Feb-01 -  23-Feb-28 | Expenses:Apparel |  26.71 | USD |  44.87 | USD |
| 23-Jul-01 - 23-Jul-31 | Expenses:Broker  |   1.20 | USD |  46.07 | USD |
| 23-Aug-01 - 23-Aug-31 | Expenses:Broker  |  10.00 | USD |  56.07 | USD |

John Wiegley

unread,
Apr 19, 2024, 6:16:18 PMApr 19
to Nothing ToSee, Ledger
>>>>> "NT" == Nothing ToSee <zorgi...@gmail.com> writes:

NT> When I try to run this command: ledger --pedantic -f journal.lgr reg
NT> expenses -b 2023-01-01 -X USD --no-revalued --group-by 'account' -M , the
NT> transactions are grouped by account, but they are repeated in each account
NT> starting from the second group.

I confirm this error is happening for me too locally, although I don’t know
yet what might be causing this. I’m on vacation now, so it will be a little
while before I can look into it.

John
Reply all
Reply to author
Forward
0 new messages