# Filter Field in Metric Chart

**URL:** <https://discuss.elastic.co/t/filter-field-in-metric-chart/60600>\
**Category:** Kibana\
**Created:** [September 15, 2016, 11:34am UTC](https://discuss.elastic.co/t/filter-field-in-metric-chart/60600 "2016-09-15T11:34:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![techrawther](https://avatars.discourse-cdn.com/v4/letter/t/41988e/32.png) [@techrawther](https://discuss.elastic.co/u/techrawther)\
**Post date:** [September 15, 2016, 11:34am UTC](https://discuss.elastic.co/t/filter-field-in-metric-chart/60600/1 "2016-09-15T11:34:05Z")

</div>

I am using Kibana 4.5 I have a requirement to filter the content in Metric Chart similar to what we have filter in vertical bar chart.

I am pushing my hudson jobs status to elastic and trying to get the count of each product failure and success. I prefer display the count in "metrics chart" rather than graphical chart like vertical bar. In bar chat we have option to filter data but I don't see a option in metric chart to filter data.

My requirement matches to what is mentioned in here [https://github.com/elastic/kibana/issues/3860](https://github.com/elastic/kibana/issues/3860) It will be difficult to write "discover query filters" and save them as I have around 100+ products and create those many visualizations is cumbersome. I want to just display one metric chart as below. I tried using the JSON input feature of Metrics chart and filter the data, but it didn't yield desired output. Am I missing some thing here. Is there a easy way to display the desired filtered data in one single chart?

Product 1 - [Failure count]  
Product 1 - [Success Count]  
Product 2 - [Failure Count]  
Product 2 - [Success count]

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [September 16, 2016, 5:53am UTC](https://discuss.elastic.co/t/filter-field-in-metric-chart/60600/2 "2016-09-16T05:53:17Z")

</div>

I believe this is due to there not being a filter aggregation for [Metrics](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics.html). Unfortunately, your only option for metrics is to use a saved search containing the data which you are interested in.

---

<div class="post-metadata">

**Author:** ![techrawther](https://avatars.discourse-cdn.com/v4/letter/t/41988e/32.png) [@techrawther](https://discuss.elastic.co/u/techrawther)\
**Post date:** [September 16, 2016, 6:13am UTC](https://discuss.elastic.co/t/filter-field-in-metric-chart/60600/4 "2016-09-16T06:13:34Z")

</div>

Thanks @tsmalley . Is this eligible for a enhancement request?

---

<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 6, 2017, 1:38pm UTC](https://discuss.elastic.co/t/filter-field-in-metric-chart/60600/5 "2017-07-06T13:38:57Z")

</div>


