# Canvas : Need to parse the values of 2 filters to the essql

**URL:** <https://discuss.elastic.co/t/canvas-need-to-parse-the-values-of-2-filters-to-the-essql/181166>\
**Category:** Kibana\
**Tags:** canvas\
**Created:** [May 15, 2019, 11:32am UTC](https://discuss.elastic.co/t/canvas-need-to-parse-the-values-of-2-filters-to-the-essql/181166 "2019-05-15T11:32:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TEJASWI\_CHUNDURI](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tejaswi_chunduri/32/46271_2.png) [@TEJASWI\_CHUNDURI](https://discuss.elastic.co/u/TEJASWI_CHUNDURI)\
**Post date:** [May 15, 2019, 11:32am UTC](https://discuss.elastic.co/t/canvas-need-to-parse-the-values-of-2-filters-to-the-essql/181166/1 "2019-05-15T11:32:51Z")

</div>

The filter values needs to be parsed to the sql

Example:

```
  SELECT url , version, COUNT(*) AS K FROM "table_*" WHERE version='9.0.3.9' or version='9.0.3.10' GROUP BY url, version HAVING 
    K <2 ORDER BY url
     DESC

```

==============================  
essql

```
SELECT url , version, COUNT(*) AS K FROM "table_*" WHERE version='$ **version**' or version='$ **version**' GROUP BY url, version HAVING 
K <2 ORDER BY url
 DESC

```

@Catherine_Liu

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/0/20061c1ca434e5df423ac240af8016a9349330da.png)

---

<div class="post-metadata">

**Author:** ![markov00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markov00/32/33316_2.png) [@markov00](https://discuss.elastic.co/u/markov00)\
**Post date:** [May 24, 2019, 9:44am UTC](https://discuss.elastic.co/t/canvas-need-to-parse-the-values-of-2-filters-to-the-essql/181166/2 "2019-05-24T09:44:44Z")

</div>

Adding two dropdown filters will automatically filter your essql but with an AND between those filters.

@Catherine_Liu or @Joe_Fleming knows better if we can we "disable" that filtering behaviour and use the filter values inside the essql expression?

---

<div class="post-metadata">

**Author:** ![TEJASWI\_CHUNDURI](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tejaswi_chunduri/32/46271_2.png) [@TEJASWI\_CHUNDURI](https://discuss.elastic.co/u/TEJASWI_CHUNDURI)\
**Post date:** [May 29, 2019, 6:48am UTC](https://discuss.elastic.co/t/canvas-need-to-parse-the-values-of-2-filters-to-the-essql/181166/3 "2019-05-29T06:48:54Z")

</div>

Any help @Joe_Fleming @Catherine_Liu

---

<div class="post-metadata">

**Author:** ![Joe\_Fleming](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joe_fleming/32/3561_2.png) [@Joe\_Fleming](https://discuss.elastic.co/u/Joe_Fleming)\
**Post date:** [May 29, 2019, 6:05pm UTC](https://discuss.elastic.co/t/canvas-need-to-parse-the-values-of-2-filters-to-the-essql/181166/4 "2019-05-29T18:05:55Z")

</div>

I left a reply here that I think applies to this question as well: [Canvas : is it possible to send varaibles to esql, edocs query argument or is it a limitation in canvas](https://discuss.elastic.co/t/canvas-is-it-possible-to-send-varaibles-to-esql-edocs-query-argument-or-is-it-a-limitation-in-canvas/181524/5)

---

<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:** [June 26, 2019, 6:05pm UTC](https://discuss.elastic.co/t/canvas-need-to-parse-the-values-of-2-filters-to-the-essql/181166/5 "2019-06-26T18:05:57Z")

</div>

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