# List Filter Advanced

**URL:** <https://forum.bubble.io/t/list-filter-advanced/182270>\
**Category:** Need help\
**Created:** [December 14, 2021, 5:16pm UTC](https://forum.bubble.io/t/list-filter-advanced/182270 "2021-12-14T17:16:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon94678708](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@anon94678708](https://forum.bubble.io/u/anon94678708)\
**Post date:** [December 14, 2021, 5:16pm UTC](https://forum.bubble.io/t/list-filter-advanced/182270/1 "2021-12-14T17:16:14Z")

</div>

Hey there!

I’ve got a problem with filtering a repeating group by custom states.  
The repeating group only should show Things that contain a specific category (Selected Template Categories is a custom state which is a list of an option set; Template Categories is a List of an option set).

Problem: the value right now is empty.

Thanks for help. 🙂

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/f/e/fe00730fabb4beb85fd07ec022104b3872de2304.jpeg)

---

<div class="post-metadata">

**Author:** ![williamtisdale](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/williamtisdale/32/113723_2.png) [@williamtisdale](https://forum.bubble.io/u/williamtisdale)\
**Post date:** [December 15, 2021, 5:40pm UTC](https://forum.bubble.io/t/list-filter-advanced/182270/2 "2021-12-15T17:40:03Z")

</div>

As far as I know, it will not work if you say ListA ‘contains’ ListB. You have to either break it up and say ListB:item#1 is in ListA or ListB:item#2 is in ListA and so forth across all item numbers. Or you can say ListA contains ListB:item#1 and so forth until all item numbers are accounted for.

---

<div class="post-metadata">

**Author:** ![luke2](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/luke2/32/256674_2.png) [@luke2](https://forum.bubble.io/u/luke2)\
**Post date:** [December 15, 2021, 6:18pm UTC](https://forum.bubble.io/t/list-filter-advanced/182270/3 "2021-12-15T18:18:32Z")

</div>

Hi,

You can use the ‘contains list’ expression or other use the ‘intersect with’ in this situation

> [@Show if list A contains any item in list B](http://forum.bubble.io/t/show-if-list-a-contains-any-item-in-list-b/120285):
>
> Hi everyone, I have looked through the forum to no avail. I’m basically trying to recreate a tinder pile because of a bug that has caused it to completely defeat its purpose. I need to show the profile of user B only if their criteria matches user A. The page shows 1 user per refresh only. I’ve got all but 2 of the filters sorted. Area and zones. Basically I want user B to show up as a profile if their area preference is ANY of user A’s. This seems like such an easy thing in a data perspect…

> [@Issue with contains / intersect with list](http://forum.bubble.io/t/issue-with-contains-intersect-with-list/24272/4):
>
> Hi @lam, I updated your filter to do what you need. Check it out and let me know if you have any questions. If you use “intersect” it’ll look for any items that are in both lists of orders. You’ll see that I used an advanced filter to do this. The intersect operation returns the list of results, so as long as there is \> 0 intersected orders, the user should show. [Gaby | Coaching Bubble Private coaching, courses, and tons of free resources](https://coachingbubble.com?ref=forum)

---

<div class="post-metadata">

**Author:** ![anon94678708](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@anon94678708](https://forum.bubble.io/u/anon94678708)\
**Post date:** [December 16, 2021, 12:38pm UTC](https://forum.bubble.io/t/list-filter-advanced/182270/4 "2021-12-16T12:38:59Z")

</div>

Thank you, but the list changes dynamically in its length (i forgot to say). This approach would be suboptimal in the implementation.

---

<div class="post-metadata">

**Author:** ![anon94678708](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@anon94678708](https://forum.bubble.io/u/anon94678708)\
**Post date:** [December 16, 2021, 12:40pm UTC](https://forum.bubble.io/t/list-filter-advanced/182270/5 "2021-12-16T12:40:03Z")

</div>

Thank you very much! I used the ‘contains list’ expression and it worked perfectly.

---

<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:** [February 22, 2022, 5:17pm UTC](https://forum.bubble.io/t/list-filter-advanced/182270/6 "2022-02-22T17:17:06Z")

</div>

Closed on February 22, 2022, 5:17pm UTC

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