# How to implement 'AND' 'OR' controls in Control Visualization?

**URL:** <https://discuss.elastic.co/t/how-to-implement-and-or-controls-in-control-visualization/167258>\
**Category:** Kibana\
**Created:** [February 6, 2019, 10:04am UTC](https://discuss.elastic.co/t/how-to-implement-and-or-controls-in-control-visualization/167258 "2019-02-06T10:04:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![GitSpree23](https://avatars.discourse-cdn.com/v4/letter/g/65b543/32.png) [@GitSpree23](https://discuss.elastic.co/u/GitSpree23)\
**Post date:** [February 6, 2019, 10:04am UTC](https://discuss.elastic.co/t/how-to-implement-and-or-controls-in-control-visualization/167258/1 "2019-02-06T10:04:42Z")

</div>

My dashboard is like this :

 ![BlueKai%20dashboard%20controls](https://us1.discourse-cdn.com/elastic/original/3X/1/8/1834393c3212e89e65d7fe694479cbb7b3ccf1b9.png)

I want to implement an AND OR selection feature on each of the controls, i.e. there will be 2 category and 2 campaign selections. So, for example, user visualise records that contain category 170867 as well as records under category 170868 using AND condition.

---

<div class="post-metadata">

**Author:** ![Aaron\_Caldwell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron_caldwell/32/45755_2.png) [@Aaron\_Caldwell](https://discuss.elastic.co/u/Aaron_Caldwell)\
**Post date:** [February 6, 2019, 8:19pm UTC](https://discuss.elastic.co/t/how-to-implement-and-or-controls-in-control-visualization/167258/2 "2019-02-06T20:19:57Z")

</div>

Hello,

I'm not entirely sure I understand but it sounds like you're looking for bool search capability which you can find documentation for here:

[https://www.elastic.co/guide/en/elasticsearch/reference/6.6/query-dsl-bool-query.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.6/query-dsl-bool-query.html)

Regards,  
Aaron

---

<div class="post-metadata">

**Author:** ![GitSpree23](https://avatars.discourse-cdn.com/v4/letter/g/65b543/32.png) [@GitSpree23](https://discuss.elastic.co/u/GitSpree23)\
**Post date:** [February 11, 2019, 4:54am UTC](https://discuss.elastic.co/t/how-to-implement-and-or-controls-in-control-visualization/167258/3 "2019-02-11T04:54:04Z")

</div>

Yes, but how to implement this in Visualisation? I need the variables to take values from Dashboard and push the filtered data into Kibana for visualisation.

Could you help with this? I'm thinking timelion ... but even there we need to fetch values from selections made on Dashboard (dynamically).

---

<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:** [March 11, 2019, 4:54am UTC](https://discuss.elastic.co/t/how-to-implement-and-or-controls-in-control-visualization/167258/4 "2019-03-11T04:54:14Z")

</div>

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