# Using invert Iclusion of a saved Query

**URL:** <https://discuss.elastic.co/t/using-invert-iclusion-of-a-saved-query/235941>\
**Category:** Kibana\
**Created:** [June 5, 2020, 11:23am UTC](https://discuss.elastic.co/t/using-invert-iclusion-of-a-saved-query/235941 "2020-06-05T11:23:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dzoni](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@dzoni](https://discuss.elastic.co/u/dzoni)\
**Post date:** [June 5, 2020, 11:23am UTC](https://discuss.elastic.co/t/using-invert-iclusion-of-a-saved-query/235941/1 "2020-06-05T11:23:03Z")

</div>

Hello there,

i have an Problem by solving my use case.

I created and saved a query. This query is filtering values of a String field.  
Then i was creating a visualization with a Invert inclusion reference to this query.  
This is working still fine till now.

But if i'm adding some more values of the field to the saved query,  
the chances won't influcene to the connected Visualization.

How can i solve this Problem?

Is there a was to use the invert inclusion targeted on an ID or s.th. else of the saved query?

I hope i descibed my use-case cleary.

thanks for spending time helping me by solving the Problem!  
greets  
dzoni

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [June 11, 2020, 7:10pm UTC](https://discuss.elastic.co/t/using-invert-iclusion-of-a-saved-query/235941/2 "2020-06-11T19:10:25Z")

</div>

> But if i'm adding some more values of the field to the saved query,  
> the chances won't influcene to the connected Visualization.

A [saved query](https://www.elastic.co/guide/en/kibana/current/save-load-delete-query.html) does not link the query to the visualiation. This means if the saved query changes, the visualization will not be updated with the changes to the saved query.

Use a [saved search](https://www.elastic.co/guide/en/kibana/current/save-open-search.html) to link a search to a visualization. The visualization will stay in sync with any changes to saved search

---

<div class="post-metadata">

**Author:** ![dzoni](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@dzoni](https://discuss.elastic.co/u/dzoni)\
**Post date:** [June 15, 2020, 7:03am UTC](https://discuss.elastic.co/t/using-invert-iclusion-of-a-saved-query/235941/3 "2020-06-15T07:03:24Z")

</div>

Hello Nathan\_Reese,

first i tried it with the saved search. But with this i cant use the Invert inclusion function.  
When i link the saved search in two different visualization i cant use in one visualization this function.

Then i have to do two saved searches, and then i have to Change Always both.

But i want to have one saved query/search used in both visualizations. and if i Change the saved query/search both visialization will update, one like normal and the other with the inverted inclussion.

Do anyone have an idea???

Greets

---

<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:** [July 13, 2020, 7:03am UTC](https://discuss.elastic.co/t/using-invert-iclusion-of-a-saved-query/235941/4 "2020-07-13T07:03:27Z")

</div>

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