# Multiple to multiple match

**URL:** <https://community.glideapps.com/t/multiple-to-multiple-match/58640>\
**Category:** Ask for Help\
**Created:** [March 1, 2023, 5:54pm UTC](https://community.glideapps.com/t/multiple-to-multiple-match/58640 "2023-03-01T17:54:02Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ludotomatic](https://avatars.discourse-cdn.com/v4/letter/l/6f9a4e/32.png) [@Ludotomatic](https://community.glideapps.com/u/Ludotomatic)\
**Post date:** [March 1, 2023, 5:54pm UTC](https://community.glideapps.com/t/multiple-to-multiple-match/58640/1 "2023-03-01T17:54:02Z")

</div>

Hi, I have seen several posts addressing this but I am having a hard time understanding them.

I’m making a dating app. You can choose the kind of relationship you are looking for: love, friendship, fun… You can choose several of them.

In the search screen, only users who are looking for one or more matching relationship types should appear.

How do I achieve that?

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [March 2, 2023, 12:04am UTC](https://community.glideapps.com/t/multiple-to-multiple-match/58640/2 "2023-03-02T00:04:52Z")

</div>

You can do it like this, assuming you’re storing the kind of relationship as a comma-delimited list (i.e: love,friendship,fun if you get that from a multiple choice component).

- Create a split text column to split the list of relationship kinds into an array.

- Create a relation from that array to itself. You will get a list of people that matches at least one relationship kind, for each user.

- Add a collection/inline list to the screen, have the source be the relation above. Filter out the “current user” (i.e: email/rowID is not signed-in user’s email/rowID)

---

<div class="post-metadata">

**Author:** ![Ludotomatic](https://avatars.discourse-cdn.com/v4/letter/l/6f9a4e/32.png) [@Ludotomatic](https://community.glideapps.com/u/Ludotomatic)\
**Post date:** [March 2, 2023, 7:01am UTC](https://community.glideapps.com/t/multiple-to-multiple-match/58640/3 "2023-03-02T07:01:19Z")

</div>

Thank you for this reply.

I’m using a Swipe component, is there a way to use the relationship kinds in the “Filter data” section instead of showing them in an inline list?

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [March 2, 2023, 8:29am UTC](https://community.glideapps.com/t/multiple-to-multiple-match/58640/4 "2023-03-02T08:29:16Z")

</div>

You should still be able to point your Swipe layout to be powered by a relation instead of using “Filter data”.

---

<div class="post-metadata">

**Author:** ![Ludotomatic](https://avatars.discourse-cdn.com/v4/letter/l/6f9a4e/32.png) [@Ludotomatic](https://community.glideapps.com/u/Ludotomatic)\
**Post date:** [March 2, 2023, 4:08pm UTC](https://community.glideapps.com/t/multiple-to-multiple-match/58640/5 "2023-03-02T16:08:53Z")

</div>

The thing is I have many filters on the Swipe:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/4/b4267c041c545469abd5d1ad1aa0afde6a881b4d.png)

How can the Relationship Type filter be added to the ones already active?

Thanks!

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [March 3, 2023, 12:28am UTC](https://community.glideapps.com/t/multiple-to-multiple-match/58640/6 "2023-03-03T00:28:58Z")

</div>

Oh sorry, I forgot that the Swipe layout does not allow you to specify a relation as its input as it’s on the tab level only. Please ignore my previous message.

From the relation, you should be able to get a joined list of rowIDs/emails. Filter by rowID/email is included in joined list of matching rowIDs/emails.

---

<div class="post-metadata">

**Author:** ![Ludotomatic](https://avatars.discourse-cdn.com/v4/letter/l/6f9a4e/32.png) [@Ludotomatic](https://community.glideapps.com/u/Ludotomatic)\
**Post date:** [March 6, 2023, 4:11pm UTC](https://community.glideapps.com/t/multiple-to-multiple-match/58640/7 "2023-03-06T16:11:55Z")

</div>

Thank you so much for your help!

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [March 7, 2023, 12:41am UTC](https://community.glideapps.com/t/multiple-to-multiple-match/58640/8 "2023-03-07T00:41:48Z")

</div>

Hope it helped you get to the solution!

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [March 8, 2023, 12:41am UTC](https://community.glideapps.com/t/multiple-to-multiple-match/58640/9 "2023-03-08T00:41:50Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
