# Does Kibana dashboard inherits filters from visualization?

**URL:** <https://discuss.elastic.co/t/does-kibana-dashboard-inherits-filters-from-visualization/224751>\
**Category:** Kibana\
**Created:** [March 24, 2020, 12:48am UTC](https://discuss.elastic.co/t/does-kibana-dashboard-inherits-filters-from-visualization/224751 "2020-03-24T00:48:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ElasticLiver](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elasticliver/32/64869_2.png) [@ElasticLiver](https://discuss.elastic.co/u/ElasticLiver)\
**Post date:** [March 24, 2020, 12:48am UTC](https://discuss.elastic.co/t/does-kibana-dashboard-inherits-filters-from-visualization/224751/1 "2020-03-24T00:48:21Z")

</div>

I have filter by hostgroup in my visualization, and seems that dashboard inherits this filter, but when I press filters in dahboard, Im still habe the posibility to change the hostgroup. this will override my previous filter?

Does Kibana dashboard inherits filters from visualization?

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [March 24, 2020, 7:47am UTC](https://discuss.elastic.co/t/does-kibana-dashboard-inherits-filters-from-visualization/224751/2 "2020-03-24T07:47:31Z")

</div>

In short: Yes, filters from the vis are also applied on dashboards, but no, it won't overwrite it but try to apply both criteria at the same time.

Long explanation:  
When you have a filter pill in a visualization and save it, this filter will be saved along with the visualization. If you embed the visualization on a dashboard, the filter pill will be invisible but active for that single visualization (not for the whole dashboard). If you add filter pills to the dashboard as well, they are merged with the filters of the visualization.

Example:

1. You create visualization A with a filter `hostgroup: A`
2. You create visualization B with a filter `hostgroup: B`
3. You add both of them to a dashboard - vis A will only show documents from hostgroup A, vis B will only show documents from hostgroup B
4. You add a filter `myOtherField: C` to the dashboard - vis A will only show documents from hostgroup A _AND_ myOtherField C, vis B will only show documents from hostgroup B _AND_ myOtherField C

Keep in mind, it will not overwrite an existing filter for a field but just add an additional filter, so if you  
5. Add a filter `hostgroup: C` to the dashboard - vis A will only show documents which have both hostgroups A and C, vis B will only show documents which have both hostgroups B and C - most likely this won't return any results at all because each document just has a single hostgroup value - but it can be useful for array fields.

---

<div class="post-metadata">

**Author:** ![ElasticLiver](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elasticliver/32/64869_2.png) [@ElasticLiver](https://discuss.elastic.co/u/ElasticLiver)\
**Post date:** [March 24, 2020, 12:40pm UTC](https://discuss.elastic.co/t/does-kibana-dashboard-inherits-filters-from-visualization/224751/3 "2020-03-24T12:40:11Z")

</div>

Thank Joe, great answer!

---

<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:** [April 21, 2020, 12:40pm UTC](https://discuss.elastic.co/t/does-kibana-dashboard-inherits-filters-from-visualization/224751/4 "2020-04-21T12:40:16Z")

</div>

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