# Control/filter how to show only possible values

**URL:** <https://discuss.elastic.co/t/control-filter-how-to-show-only-possible-values/328377>\
**Category:** Kibana\
**Tags:** dashboard\
**Created:** [March 23, 2023, 4:57pm UTC](https://discuss.elastic.co/t/control-filter-how-to-show-only-possible-values/328377 "2023-03-23T16:57:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pratverd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pratverd/32/118850_2.png) [@pratverd](https://discuss.elastic.co/u/pratverd)\
**Post date:** [March 23, 2023, 4:57pm UTC](https://discuss.elastic.co/t/control-filter-how-to-show-only-possible-values/328377/1 "2023-03-23T16:57:13Z")

</div>

Hi everyone 🙂

I'm trying to filter with controls and I would like to have only possible values when I choose a filter and I have to filter with another one.  
Above an example:

| filter 1 | filter 2 |  
| apple | fruits |  
|lemon |vegetables |  
| orange | animals |  
| melon |  
| tomato |  
| potato |  
| bird |  
| dog |

For example if we decide to filter with filter2 ANIMALS we will have as result all the options of filter 1.

| filter 1 | filter 2 |  
| apple | animals |  
|lemon |  
| orange |  
| melon |  
| tomato |  
| potato |  
| bird |  
| dog |

BUT we want to have only in filter 1 the animals: BIRD and DOG.  
| filter 1 | filter 2 |  
| dog | animals |  
| bird |

This is what we are wishing for.  
We have tried with parent control choosing filter2 as parent and filter1 as child and this works but the problem is that the filter1 is locked if filter 2 isn't selected and we don't like it.

thanks 🙂

---

<div class="post-metadata">

**Author:** ![Hannah\_Mudge](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hannah_mudge/32/107993_2.png) [@Hannah\_Mudge](https://discuss.elastic.co/u/Hannah_Mudge)\
**Post date:** [April 10, 2023, 9:23pm UTC](https://discuss.elastic.co/t/control-filter-how-to-show-only-possible-values/328377/2 "2023-04-10T21:23:50Z")

</div>

@pratverd Seems like you are talking about the legacy input controls, which have always been experimental and have been deprecated since [version 8.3](https://github.com/elastic/kibana/pull/132562). In the [new controls](https://www.elastic.co/guide/en/kibana/current/add-controls.html), there is no need to set up a parent-child relationship - left-to-right chaining is enabled **by default** , which would mean (in your case) selecting "lemon" and "orange" in control 1 would make it so that only "fruits" is available in control 2.

We don't currently have the option for right-to-left/bi-directional chaining - this means that, if you select "fruits" in control 2, **all** options will still be available in control 1. Here's a link to the [feature request](https://github.com/elastic/kibana/issues/139578) for this - if you feel like this would be a useful feature for your use case, feel free to leave a comment on that issue so that we can track user requests 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 8, 2023, 9:24pm UTC](https://discuss.elastic.co/t/control-filter-how-to-show-only-possible-values/328377/3 "2023-05-08T21:24:28Z")

</div>

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