# Elastic search distinct count of three query

**URL:** <https://discuss.elastic.co/t/elastic-search-distinct-count-of-three-query/138053>\
**Category:** Elasticsearch\
**Created:** [June 30, 2018, 8:04am UTC](https://discuss.elastic.co/t/elastic-search-distinct-count-of-three-query/138053 "2018-06-30T08:04:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tahir\_Khan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tahir_khan/32/32836_2.png) [@Tahir\_Khan](https://discuss.elastic.co/u/Tahir_Khan)\
**Post date:** [June 30, 2018, 8:04am UTC](https://discuss.elastic.co/t/elastic-search-distinct-count-of-three-query/138053/1 "2018-06-30T08:04:15Z")

</div>

How to merge three queries in grafana also I need the distinct record with the sum of all query for example  
one query result count 20 times a week another query result count 4 times a day another query result count 2 times a hour  
I have done the query but I need the distinct record and sum of all query

---

<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 28, 2018, 8:10am UTC](https://discuss.elastic.co/t/elastic-search-distinct-count-of-three-query/138053/2 "2018-07-28T08:10:35Z")

</div>

Closed on July 28, 2018, 8:10am UTC

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