# Intersect two multi-item fields

**URL:** <https://forum.bubble.io/t/intersect-two-multi-item-fields/300185>\
**Category:** Database\
**Created:** [January 3, 2024, 5:51am UTC](https://forum.bubble.io/t/intersect-two-multi-item-fields/300185 "2024-01-03T05:51:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![derek4](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/derek4/32/157571_2.png) [@derek4](https://forum.bubble.io/u/derek4)\
**Post date:** [January 3, 2024, 5:51am UTC](https://forum.bubble.io/t/intersect-two-multi-item-fields/300185/1 "2024-01-03T05:51:01Z")

</div>

Hey all,

Once again, might be trying to accomplish something that’s not technically possible, but wondering if there’s a way in a search to return all items where there’s an intersection between their multi-item fields. I mapped out an example to demonstrate: If a customer and shirt ‘Things’ both reference multiple values from the ‘Thing’ Colors ,I would like to show every shirt that has a color that’s also in the Customer’s favorite color (would also use this for more basic searching, with a multi-select dropdown, e.g.).

Doable?

Thanks as always!

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/5/3/53db49e7ca8146039d3f6dcebb1cf71507369b8c.png)

---

<div class="post-metadata">

**Author:** ![cmarchan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/cmarchan/32/253062_2.png) [@cmarchan](https://forum.bubble.io/u/cmarchan)\
**Post date:** [January 3, 2024, 5:58am UTC](https://forum.bubble.io/t/intersect-two-multi-item-fields/300185/2 "2024-01-03T05:58:22Z")

</div>

Doable

Standardize naming  
Use this texts to filter

---

<div class="post-metadata">

**Author:** ![hergin](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/hergin/32/199185_2.png) [@hergin](https://forum.bubble.io/u/hergin)\
**Post date:** [January 3, 2024, 6:56am UTC](https://forum.bubble.io/t/intersect-two-multi-item-fields/300185/3 "2024-01-03T06:56:03Z")

</div>

The trick is to use an **advanced** filter which I also didn’t know too much about until your question 🙂 Then you intersect the current customer’s favorite color from repeating group with this shirt’s available color from the filter and get the ones with count greater than 0.

The inner repeating group will have this filter:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/f/2/f2aac3cc9fd5654243d9d7ec1d63c1cda7efa881.png)

And here is the output:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/8/f/8ff09736bcf10c19a0fa842e69c36e38b508f0ed.png)

---

<div class="post-metadata">

**Author:** ![derek4](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/derek4/32/157571_2.png) [@derek4](https://forum.bubble.io/u/derek4)\
**Post date:** [January 4, 2024, 3:16am UTC](https://forum.bubble.io/t/intersect-two-multi-item-fields/300185/4 "2024-01-04T03:16:48Z")

</div>

Amazing, thank you so much!!

ALL the bonus points for using my same silly example 😀

---

<div class="post-metadata">

**Author:** ![graziellamk](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/graziellamk/32/262718_2.png) [@graziellamk](https://forum.bubble.io/u/graziellamk)\
**Post date:** [September 3, 2026, 11:25pm UTC](https://forum.bubble.io/t/intersect-two-multi-item-fields/300185/5 "2026-09-03T23:25:33Z")

</div>

hi unfortunately this cotst lots of wu, it’s very slow. is there another way around it ?
