# Report Transformation - General Ledger Transactions

**URL:** <https://forum.manager.io/t/report-transformation-general-ledger-transactions/33196>\
**Category:** Uncategorized\
**Created:** [February 13, 2021, 6:55am UTC](https://forum.manager.io/t/report-transformation-general-ledger-transactions/33196 "2021-02-13T06:55:49Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Patch](https://avatars.discourse-cdn.com/v4/letter/p/a183cd/32.png) [@Patch](https://forum.manager.io/u/Patch)\
**Post date:** [February 16, 2021, 12:43pm UTC](https://forum.manager.io/t/report-transformation-general-ledger-transactions/33196/8 "2021-02-16T12:43:08Z")

</div>

The group by filter converts a array of transactions to an array of arrays of transactions, ie a group of arrays of transactions.

To display the results you have to cycle through both levels. The outer loop cycling through the group, the inner loop cycling through the transactions. For example

> [@How to implement country-specific report in Manager](https://forum.manager.io/t/how-to-implement-country-specific-report-in-manager/30543/47):
>
> I just added new group\_by filter to the latest version. So you can something like: {% assign inventoryItemsPerUnitName = inventoryItems | group\_by: "UnitName" %} \<ul\> {% for e in inventoryItemsPerUnitName %} \<li\>{{ e.Key }} \<ul\> {% for inventoryItem in e.Value %} \<li\>{{ inventoryItem.Name }}\</li\> {% endfor %} \</ul\> {% endfor %} \</ul\> This will group inventory items by their UnitName.

Unfortunately last time I tried after you use the group by filter, then the balance: and drill down no longer work, so have to be all calculated manually.

edit  
`group_by: GeneralLedgerAccount.Name` is probably closer to valid code.

```auto
{% for account in openingBalance %}
{% for f in account %}
{{ f.Date }} {f.Amount }}
{% endfor %}
{% endfor %}

```

---

_[View the full topic](https://forum.manager.io/t/report-transformation-general-ledger-transactions/33196)._
