# Kibana Canvas filter groups

**URL:** <https://discuss.elastic.co/t/kibana-canvas-filter-groups/195313>\
**Category:** Kibana\
**Tags:** canvas\
**Created:** [August 15, 2019, 7:33am UTC](https://discuss.elastic.co/t/kibana-canvas-filter-groups/195313 "2019-08-15T07:33:43Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![gbarnett](https://avatars.discourse-cdn.com/v4/letter/g/ac91a4/32.png) [@gbarnett](https://discuss.elastic.co/u/gbarnett)\
**Post date:** [August 15, 2019, 7:33am UTC](https://discuss.elastic.co/t/kibana-canvas-filter-groups/195313/1 "2019-08-15T07:33:44Z")

</div>

In Kibana Canvas 7.3, it states that the dropdown filter now supports filter groups. It is easy enough to create a new filter group for the dropdown filter. But, how is that filter group name now associated with specific fields on the canvas? For example, assume I have a specific metric field that I want to associate with a dropdown filter, and the dropdown filter is assigned test\_filter as the filter group name. How do I now associate my metric field on the canvas with test\_filter?

---

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [August 15, 2019, 9:36pm UTC](https://discuss.elastic.co/t/kibana-canvas-filter-groups/195313/2 "2019-08-15T21:36:19Z")

</div>

You'll have to edit the expression for the metric vis. If you open the expression editor when your metric vis is selected you'll probably see a `filters` function at the beginning. You can pass in the group name to this function. It would look something like this, where my group name is "bar":

 ![01%20PM](https://us1.discourse-cdn.com/elastic/original/3X/9/a/9a7306e6ac7323ba86b2267ed8b8863c2b10be4b.png)

---

<div class="post-metadata">

**Author:** ![gbarnett](https://avatars.discourse-cdn.com/v4/letter/g/ac91a4/32.png) [@gbarnett](https://discuss.elastic.co/u/gbarnett)\
**Post date:** [August 16, 2019, 7:43am UTC](https://discuss.elastic.co/t/kibana-canvas-filter-groups/195313/3 "2019-08-16T07:43:36Z")

</div>

Matt, thanks for the quick response. Very helpful. However, I now have an issue with multiple filters. For example, I have three canvases. Each canvas has a filter button, and a unique group assigned. And, the elements on canvas 1 are in the filter"group 1", and the elements on canvas 2 are in the filter "group 2". I can go to canvas 1 and change the filter. But when I go to the filter on canvas 2, it no longer lets me change the filter parameters. The drop-down with the calendars look great, but I cannot select another filer like "last 24 hours". This seems to have been a side affect of groups?

---

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [August 16, 2019, 9:59pm UTC](https://discuss.elastic.co/t/kibana-canvas-filter-groups/195313/4 "2019-08-16T21:59:16Z")

</div>

I tried to reproduce but I'm not seeing the issue you described. Below is a video of me trying to follow the steps. Am I doing it right? Is there anything I'm missing that you're doing differently?

https://player.vimeo.com/video/354304674

---

<div class="post-metadata">

**Author:** ![gbarnett](https://avatars.discourse-cdn.com/v4/letter/g/ac91a4/32.png) [@gbarnett](https://discuss.elastic.co/u/gbarnett)\
**Post date:** [August 16, 2019, 10:24pm UTC](https://discuss.elastic.co/t/kibana-canvas-filter-groups/195313/5 "2019-08-16T22:24:07Z")

</div>

Matt, it looks like you are doing exactly what I’m doing, assuming that you put group1 and group2 in the expressions for your two elements.

Other than that, the only other difference I see is that I actually have 4 canvases rather than 2. Each has a filter. And, I’m putting 6-8 elements (usually metrics) in the group using the expression builder like you described.

Finally, I always execute the canvases in full screen mode.

---

<div class="post-metadata">

**Author:** ![gbarnett](https://avatars.discourse-cdn.com/v4/letter/g/ac91a4/32.png) [@gbarnett](https://discuss.elastic.co/u/gbarnett)\
**Post date:** [August 17, 2019, 9:22am UTC](https://discuss.elastic.co/t/kibana-canvas-filter-groups/195313/6 "2019-08-17T09:22:40Z")

</div>

Matt, I have investigated a bit more, and have found that if I DO NOT put the canvases into full-screen mode, then it works as expected. But, if I put my canvases (4 of them) into full-screen mode, then only the first filter I access allows me to make changes.

Additionally, I have found that this is independent of groups. If I remove all group references, the same issue occurs.

---

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [August 19, 2019, 3:27pm UTC](https://discuss.elastic.co/t/kibana-canvas-filter-groups/195313/7 "2019-08-19T15:27:49Z")

</div>

Ah good catch. Sounds like a legitimate bug to me. Would you mind creating an issue on our [Github repo](https://github.com/elastic/kibana/issues/new?template=Bug_report.md)?

---

<div class="post-metadata">

**Author:** ![gbarnett](https://avatars.discourse-cdn.com/v4/letter/g/ac91a4/32.png) [@gbarnett](https://discuss.elastic.co/u/gbarnett)\
**Post date:** [August 19, 2019, 3:50pm UTC](https://discuss.elastic.co/t/kibana-canvas-filter-groups/195313/8 "2019-08-19T15:50:31Z")

</div>

Same thing occurs for the dropdown filter as well.

![image002.jpg](https://us1.discourse-cdn.com/elastic/original/3X/0/e/0e863cc54d88a5829ed818cf3d39d64aeada1b10.jpeg)

---

<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:** [September 16, 2019, 3:50pm UTC](https://discuss.elastic.co/t/kibana-canvas-filter-groups/195313/9 "2019-09-16T15:50:40Z")

</div>

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