# Can't reach the proper context filter

**URL:** <https://community.fibery.io/t/cant-reach-the-proper-context-filter/6349>\
**Category:** Get Help\
**Created:** [July 4, 2024, 8:27am UTC](https://community.fibery.io/t/cant-reach-the-proper-context-filter/6349 "2024-07-04T08:27:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marloes](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/marloes/32/5926_2.png) [@Marloes](https://community.fibery.io/u/Marloes)\
**Post date:** [July 4, 2024, 8:27am UTC](https://community.fibery.io/t/cant-reach-the-proper-context-filter/6349/1 "2024-07-04T08:27:23Z")

</div>

Hi there,

I’m trying to reach entities via a context filter, but I can’t seem to figure out why I’m not able to.

We have a product database.

- Products have a many → many relation with orders (so an order can have many products and products can have many orders)
- Orders have a one → many relation with contact (so a contact, can have many orders, but an order can have one contact)

What I’m trying to do is show all contacts who have an order with this product.

With a lookup I have no problem to reach those contacts.  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/f/fed2f530fa35d2fada52aa11446bdaf06cb7e985.png)

But when I try to reach it in a table view via a context filter I have a huge amount of options (the list goes on and on), but not this particular option.  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/a/ab9add5b67b564cb2198f232a6fec2d892961050.png)

What might be the cause? Offcourse I can make a complete workaround, to link those contacts via an automation directly to the product, but I want to avoid a much formula’s, automations, etc as possible.

Thanks in advance!

Marloes

---

<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:** [July 4, 2024, 9:16am UTC](https://community.fibery.io/t/cant-reach-the-proper-context-filter/6349/2 "2024-07-04T09:16:10Z")

</div>

Does the ‘route’ you wish to take utilise only many-to-one or many-to-many relations?  
[https://the.fibery.io/@public/User\_Guide/Guide/Context-Views-20/anchor=Context-filters--0935e1fb-7c38-4566-81b1-101d4a1ed284](https://the.fibery.io/@public/User_Guide/Guide/Context-Views-20/anchor=Context-filters--0935e1fb-7c38-4566-81b1-101d4a1ed284)

Based on how I understand what you wrote, you’re trying to traverse from Contact via one-to-many (to Order) and then many-to-many (to Product)

---

<div class="post-metadata">

**Author:** ![Marloes](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/marloes/32/5926_2.png) [@Marloes](https://community.fibery.io/u/Marloes)\
**Post date:** [July 4, 2024, 9:51am UTC](https://community.fibery.io/t/cant-reach-the-proper-context-filter/6349/3 "2024-07-04T09:51:54Z")

</div>

> [@Chr1sG](#):
>
> Does the ‘route’ you wish to take utilise only many-to-one or many-to-many relations?

This is between product and order  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/5/53bb2776a3b2e6d531f3ffb3233744d5567ccd88.png)

And this is between order and contact  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/6/668278ca31fbbf72673b776459e126a90bd6c128.png)

Is the cause of not working because I have a one-many between order and contact instead of a many-one?

---

<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:** [July 4, 2024, 10:02am UTC](https://community.fibery.io/t/cant-reach-the-proper-context-filter/6349/4 "2024-07-04T10:02:57Z")

</div>

> [@Marloes](#):
>
> Is the cause of not working because I have a one-many between order and contact instead of a many-one?

Looks like it.  
You can possibly solve it by adding a lookup.

---

<div class="post-metadata">

**Author:** ![Marloes](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/marloes/32/5926_2.png) [@Marloes](https://community.fibery.io/u/Marloes)\
**Post date:** [July 4, 2024, 11:35am UTC](https://community.fibery.io/t/cant-reach-the-proper-context-filter/6349/5 "2024-07-04T11:35:31Z")

</div>

> [@Chr1sG](#):
>
> You can possibly solve it by adding a lookup.

The lookup was already in place, but I’m still not able to reach it. So I think there is another cause, but I can’t figure it out yet.

In order to debug to found out why I can’t reach it, I have created some _test databases with exact the same relations/lookups_.

As it turns out, in the test setup _it’s no problem at all_.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/4/4a2448caa1308c6bee4a6be450e7ce55789dd08a.png)

Would it be possible for you the have a look [in our space](https://acceleright.fibery.io/fibery/space/Chris/database/Test_-_Product)?  
I have created this space with the 3 test databases. And I have these views to compare with each other, 3 are from our normal databases and 3 from the test database.  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/7/78339bb637a3eb93ad9e82f1988b39fbfe04bf32.png)

- In [this test product](https://acceleright.fibery.io/fibery/space/Chris/database/Test_-_Product#Test_-_Product/Product-1-1) I can see the customer who have bought the product
- But in [this real product](https://acceleright.fibery.io/DB_marketing_en_producten/Product/Product-A-272) I can’t  
\*The only difference is that in the real product I have a many-many relation with Contact and in the test setup it is a many-one  
\*Therefor I have created an extra relation (called customers 2) to make shure this isn’t the cause of my problem. But it’s not.  
\*These are test orders. These contacts should be linked in the real product.  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/0/0d2e7c572eb449f5c1502765e1e86b32028c047a.png)

Hope you know why it isn’t working cause I just can’t seem to found out why not.

---

<div class="post-metadata">

**Author:** ![ihartrafimovich](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/ihartrafimovich/32/9_2.png) [@ihartrafimovich](https://community.fibery.io/u/ihartrafimovich)\
**Post date:** [July 4, 2024, 3:41pm UTC](https://community.fibery.io/t/cant-reach-the-proper-context-filter/6349/6 "2024-07-04T15:41:42Z")

</div>

Hi, Marloes!

I’ve set the needed filter for you. The issue is that filters with read-only fields are prioritized lower, despite the filter length, so it could be found in the middle of the enormous list.

It’s a UX issue, we need something like search here, I guess.

---

<div class="post-metadata">

**Author:** ![Marloes](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/marloes/32/5926_2.png) [@Marloes](https://community.fibery.io/u/Marloes)\
**Post date:** [July 4, 2024, 4:35pm UTC](https://community.fibery.io/t/cant-reach-the-proper-context-filter/6349/7 "2024-07-04T16:35:43Z")

</div>

@ihartrafimovich, you’re amazing!

I’ve been searching ln the enormous list, but was not able to find it. Had also made the assumption that it would be somewhere at the top of the list, since it is a fairly simple context filter.

A search would help enormously, since you often know what the field you want to use is called.

Thanks for now!
