# Grouping items in a loop based on similar characters

**URL:** <https://community.silverfin.com/t/grouping-items-in-a-loop-based-on-similar-characters/2177>\
**Category:** Templates\
**Tags:** for\_loop, drop\_transaction\
**Created:** [November 17, 2021, 9:33am UTC](https://community.silverfin.com/t/grouping-items-in-a-loop-based-on-similar-characters/2177 "2021-11-17T09:33:57Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![t0gden](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/t0gden/32/1842_2.png) [@t0gden](https://community.silverfin.com/u/t0gden)\
**Post date:** [November 18, 2021, 11:20am UTC](https://community.silverfin.com/t/grouping-items-in-a-loop-based-on-similar-characters/2177/4 "2021-11-18T11:20:19Z")

</div>

Hi @shellldon,

Thank you for coming back to me and for the extra detail.

I believe that using the “group\_by” filter will allow you to achieve this as it allows you to group items that have the same variable value such as the journal description text.

Take a look at this use case post and developer guide for how to implement it in your code and let me know if you need any further assistance \> [group\_by implementation](https://community.silverfin.com/t/case-group-custom-collection/1361) / [Collection guide](https://developer.silverfin.com/docs/collection-filters#group-by)

Many thanks

Tom

---

_[View the full topic](https://community.silverfin.com/t/grouping-items-in-a-loop-based-on-similar-characters/2177)._
