# Using two different data types in a repeating group

**URL:** <https://forum.bubble.io/t/using-two-different-data-types-in-a-repeating-group/281657>\
**Category:** Need help\
**Created:** [September 5, 2023, 7:36pm UTC](https://forum.bubble.io/t/using-two-different-data-types-in-a-repeating-group/281657 "2023-09-05T19:36:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mannanbutt678](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@mannanbutt678](https://forum.bubble.io/u/mannanbutt678)\
**Post date:** [September 5, 2023, 7:36pm UTC](https://forum.bubble.io/t/using-two-different-data-types-in-a-repeating-group/281657/1 "2023-09-05T19:36:51Z")

</div>

I am struggling to combine 2 different data types, “User” and “Batch”, in the same repeating group.

“User” has some fields in the database and the one I want to use is “interest” - a list of things.  
“Batch” has some fields in the database and the one I want to use is “category” - a list of things.

The “user” has some interest lists they liked on the platform.

“Batch” has some categories similar to the interest list.

What I want to do is I want to show only those batches in the repeating group in which “batch” (categories list ) and “user” (interest list ) will be matched. Both have the same data from the option set.

Is anyone able to help?

Thanks in Advance

---

<div class="post-metadata">

**Author:** ![mikeloc](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mikeloc/32/93001_2.png) [@mikeloc](https://forum.bubble.io/u/mikeloc)\
**Post date:** [September 5, 2023, 8:58pm UTC](https://forum.bubble.io/t/using-two-different-data-types-in-a-repeating-group/281657/2 "2023-09-05T20:58:38Z")

</div>

Hi there, @mannanbutt678… if I understand your post correctly, _one of_ the following advanced filters should do the trick (I only showed both in the same screenshot to make it easier for me).

 ![advanced](https://us1.discourse-cdn.com/bubble/original/3X/c/9/c969d30f000dc0d7b2d83befa717babee11a265a.png)

The first filter would be used if the batch’s list of categories must contain all of the interests in the current user’s list of interests. The second filter would be used if the batch’s list of categories needs to contain at least one of the interests in the current user’s list of interests.

If you have never used an advanced filter before, note that the filtering takes place on the client (browser) side. So, if you don’t have any constraints on the search for batches, that search is going to return all of the batches in the database to the client, and then the filter will be applied. Just something to be aware of and keep in mind from a performance perspective.

Hope this helps.

Best…  
Mike

---

<div class="post-metadata">

**Author:** ![mannanbutt678](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@mannanbutt678](https://forum.bubble.io/u/mannanbutt678)\
**Post date:** [September 6, 2023, 1:42pm UTC](https://forum.bubble.io/t/using-two-different-data-types-in-a-repeating-group/281657/3 "2023-09-06T13:42:05Z")

</div>

Thank you so much for your help! I really appreciate it.

Yes, I have a one-constraint on the search for batches as well.

I have used the second filter that would be used if the batch’s list of categories needs to contain at least one of the interests in the current user’s list of interests and it works perfectly!

Thanks you so much again!

 ![Screenshot 2023-09-06 at 6.33.59 PM](https://us1.discourse-cdn.com/bubble/original/3X/9/d/9dd0466c24651724eadb382eae8b4a7aed2bd95a.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [November 14, 2023, 7:37pm UTC](https://forum.bubble.io/t/using-two-different-data-types-in-a-repeating-group/281657/4 "2023-11-14T19:37:45Z")

</div>

Closed on November 14, 2023, 7:37pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
