# Kibana Graph linking does not work with filters

**URL:** <https://discuss.elastic.co/t/kibana-graph-linking-does-not-work-with-filters/234865>\
**Category:** Kibana\
**Created:** [May 29, 2020, 6:28am UTC](https://discuss.elastic.co/t/kibana-graph-linking-does-not-work-with-filters/234865 "2020-05-29T06:28:56Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![katara](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/katara/32/60143_2.png) [@katara](https://discuss.elastic.co/u/katara)\
**Post date:** [May 29, 2020, 6:28am UTC](https://discuss.elastic.co/t/kibana-graph-linking-does-not-work-with-filters/234865/1 "2020-05-29T06:28:57Z")

</div>

Hi I have a Kibana Metric Chart to show the ongoing High proprity incidents.

Here is the graph setup,

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/1/914e85b80fc97b9742365c9e3e93375435278e1a.png)  
Below is the filter value i provided.

`

> result.priority: 2 NOT result.state: closed NOT result.state: resolved

`  
This shows my count correctly, but when i click on it, the rest of the graphs are not getting linked to show the value of the count selected.  
If you see the below image, the graphs next to the metric chart, even after the filter is applied, doesn't show the filtered value.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/3/d31276b384ad3e4f61c684aa06e8cf2d3104c9bd.png)

Please help me find a solution.

---

<div class="post-metadata">

**Author:** ![poff](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/poff/32/81795_2.png) [@poff](https://discuss.elastic.co/u/poff)\
**Post date:** [June 1, 2020, 8:42pm UTC](https://discuss.elastic.co/t/kibana-graph-linking-does-not-work-with-filters/234865/2 "2020-06-01T20:42:02Z")

</div>

Hey there Katara,

What version of Kibana are you using in those screenshots?

---

<div class="post-metadata">

**Author:** ![katara](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/katara/32/60143_2.png) [@katara](https://discuss.elastic.co/u/katara)\
**Post date:** [June 1, 2020, 8:59pm UTC](https://discuss.elastic.co/t/kibana-graph-linking-does-not-work-with-filters/234865/3 "2020-06-01T20:59:30Z")

</div>

@poff, I am using version 7.2

---

<div class="post-metadata">

**Author:** ![poff](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/poff/32/81795_2.png) [@poff](https://discuss.elastic.co/u/poff)\
**Post date:** [June 1, 2020, 9:38pm UTC](https://discuss.elastic.co/t/kibana-graph-linking-does-not-work-with-filters/234865/4 "2020-06-01T21:38:10Z")

</div>

Hey Katara,

In your query, what happens if you explicitly set the boolean AND in the query. So instead of

```
result.priority: 2 NOT result.state: closed NOT result.state: resolved

```

maybe try a query of:

```auto
result.priority: 2 AND NOT result.state: closed AND NOT result.state: resolved

```

---

<div class="post-metadata">

**Author:** ![katara](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/katara/32/60143_2.png) [@katara](https://discuss.elastic.co/u/katara)\
**Post date:** [June 2, 2020, 5:28am UTC](https://discuss.elastic.co/t/kibana-graph-linking-does-not-work-with-filters/234865/5 "2020-06-02T05:28:13Z")

</div>

@poff, I did this, unfortunately, it isn't working for me .

---

<div class="post-metadata">

**Author:** ![poff](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/poff/32/81795_2.png) [@poff](https://discuss.elastic.co/u/poff)\
**Post date:** [June 2, 2020, 8:07pm UTC](https://discuss.elastic.co/t/kibana-graph-linking-does-not-work-with-filters/234865/6 "2020-06-02T20:07:26Z")

</div>

If you manually use that filter on the dashboard (not the metric), does it give you the expected results?

---

<div class="post-metadata">

**Author:** ![katara](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/katara/32/60143_2.png) [@katara](https://discuss.elastic.co/u/katara)\
**Post date:** [June 3, 2020, 8:27am UTC](https://discuss.elastic.co/t/kibana-graph-linking-does-not-work-with-filters/234865/7 "2020-06-03T08:27:52Z")

</div>

@poff

I tried to apply it seperately, ( i dont really know how to apply it full,

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/0/506c2579a56876d074224f10efdda37436bf0db5.png)

and the above works well.

I also tried:  
`

> result.priority.keyword: 2 AND NOT result.state.keyword: Closed AND NOT result.state.keyword: Resolved

`

Which also doesnt work

---

<div class="post-metadata">

**Author:** ![katara](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/katara/32/60143_2.png) [@katara](https://discuss.elastic.co/u/katara)\
**Post date:** [June 3, 2020, 10:39am UTC](https://discuss.elastic.co/t/kibana-graph-linking-does-not-work-with-filters/234865/8 "2020-06-03T10:39:05Z")

</div>

Hi ,  
{  
"query": {  
"query\_string": {  
"analyze\_wildcard": true,  
"query": "Ticket\_Type.keyword: Incident AND sla\_met.keyword: "Not Met" AND SLA\_Type.keyword: Response"  
}  
}  
}

This is the query DSL for the filter i applied,

Is is any wrong?  
Please help me solve this issue.

---

<div class="post-metadata">

**Author:** ![katara](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/katara/32/60143_2.png) [@katara](https://discuss.elastic.co/u/katara)\
**Post date:** [June 4, 2020, 9:34am UTC](https://discuss.elastic.co/t/kibana-graph-linking-does-not-work-with-filters/234865/9 "2020-06-04T09:34:40Z")

</div>

I have an alternative:  
Filters do not work still, but the alternative is to have a aggregation based on terms and then apply the filters to the entire graph, this works for me.  
You must have a terms aggregation and then any filter you apply tot he graph will allow you to link, this is mandatory.

You can apply any filters to further sort this down on top.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/b/6b16426aa2db1a2a7e74c11d471ed815ffcce1c4.png)

Thanks!

---

<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 2, 2020, 9:34am UTC](https://discuss.elastic.co/t/kibana-graph-linking-does-not-work-with-filters/234865/10 "2020-07-02T09:34:46Z")

</div>

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