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 |