# Calculate Avg By Doing Query1 Count/Query2 Count

**URL:** <https://discuss.elastic.co/t/calculate-avg-by-doing-query1-count-query2-count/229787>\
**Category:** Kibana\
**Created:** [April 25, 2020, 8:02pm UTC](https://discuss.elastic.co/t/calculate-avg-by-doing-query1-count-query2-count/229787 "2020-04-25T20:02:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![karanmig12](https://avatars.discourse-cdn.com/v4/letter/k/ecae2f/32.png) [@karanmig12](https://discuss.elastic.co/u/karanmig12)\
**Post date:** [April 25, 2020, 8:02pm UTC](https://discuss.elastic.co/t/calculate-avg-by-doing-query1-count-query2-count/229787/1 "2020-04-25T20:02:11Z")

</div>

I have 2 Queries for an index which are calculating Count on "field1" but have different filter Criteria.

I would build a metric chart to show count from Query1/Count from Query2.

I am using Kibana 6.7

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [April 27, 2020, 7:59pm UTC](https://discuss.elastic.co/t/calculate-avg-by-doing-query1-count-query2-count/229787/2 "2020-04-27T19:59:33Z")

</div>

hi @karanmig12

I believe you are describing this existing issue; [https://github.com/elastic/kibana/issues/20515](https://github.com/elastic/kibana/issues/20515)

This is currently not possible in Kibana.

---

<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:** [May 25, 2020, 7:59pm UTC](https://discuss.elastic.co/t/calculate-avg-by-doing-query1-count-query2-count/229787/3 "2020-05-25T19:59:36Z")

</div>

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