# Grouping based on relations

**URL:** <https://community.fibery.io/t/grouping-based-on-relations/10624>\
**Category:** Get Help\
**Created:** [March 23, 2026, 3:35pm UTC](https://community.fibery.io/t/grouping-based-on-relations/10624 "2026-03-23T15:35:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kemetter](https://avatars.discourse-cdn.com/v4/letter/k/46a35a/32.png) [@kemetter](https://community.fibery.io/u/kemetter)\
**Post date:** [March 23, 2026, 3:35pm UTC](https://community.fibery.io/t/grouping-based-on-relations/10624/1 "2026-03-23T15:35:40Z")

</div>

**Enable grouping in a gallery or table view based on related items.**

Example: I want to create an asset gallery of images and I want to organise them into groups. For that I have a second database called ‘asset groups’. The asset is linked in a one-to-many (edit: many-to-many) relationship to the group, i.e. one asset can be in many groups. Now in my gallery view I would like to group my assets based on this, but it’s not possible. I can create a multiselect field in the asset which does the job correctly, but in order to allow customers to easily create new groups that is not a feasible option.

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [March 23, 2026, 3:45pm UTC](https://community.fibery.io/t/grouping-based-on-relations/10624/3 "2026-03-23T15:45:49Z")

</div>

> [@kemetter](#):
>
> The asset is linked in a one-to-many relationship to the group, i.e. one asset can be in many groups.

I assume that you actually mean a many-to-many relation, since one-to-many would imply that **only** one asset could be in any group

---

<div class="post-metadata">

**Author:** ![kemetter](https://avatars.discourse-cdn.com/v4/letter/k/46a35a/32.png) [@kemetter](https://community.fibery.io/u/kemetter)\
**Post date:** [March 24, 2026, 8:03am UTC](https://community.fibery.io/t/grouping-based-on-relations/10624/4 "2026-03-24T08:03:59Z")

</div>

Thanks @Chr1sG, you are right, brain fart from me, requires a many-to-many relationsship. Does not change this problem though.

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [March 24, 2026, 10:21am UTC](https://community.fibery.io/t/grouping-based-on-relations/10624/5 "2026-03-24T10:21:16Z")

</div>

It should be possible to group using a many-to-many relation field. Perhaps you can share a video or screenshot showing the problem you’re having.
