# Trying to filter Pie chart with minimum unique count of docs

**URL:** <https://discuss.elastic.co/t/trying-to-filter-pie-chart-with-minimum-unique-count-of-docs/120398>\
**Category:** Kibana\
**Created:** [February 19, 2018, 5:42am UTC](https://discuss.elastic.co/t/trying-to-filter-pie-chart-with-minimum-unique-count-of-docs/120398 "2018-02-19T05:42:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![es\_noobb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/es_noobb/32/25849_2.png) [@es\_noobb](https://discuss.elastic.co/u/es_noobb)\
**Post date:** [February 19, 2018, 5:42am UTC](https://discuss.elastic.co/t/trying-to-filter-pie-chart-with-minimum-unique-count-of-docs/120398/1 "2018-02-19T05:42:39Z")

</div>

I am trying to filter the kibana visualization here, and I want the chart to display only when the number of processes are more than two. My theory is that every process should have a unique hash, so if any hash has two different processes, then only it should display. The inside pie is the hash and the outer one is the process. I tried using min\_doc\_count:2, but the the issue is it display when there are more than 2 doc count, whereas what I want is it to display where there is more than 2 unique count of docs. Help appreciated 😃

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

---

<div class="post-metadata">

**Author:** ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)\
**Post date:** [February 19, 2018, 11:25pm UTC](https://discuss.elastic.co/t/trying-to-filter-pie-chart-with-minimum-unique-count-of-docs/120398/2 "2018-02-19T23:25:26Z")

</div>

Am tagging our viz team here: @ppisljar 🙂  
Thanks,  
Bhavya

---

<div class="post-metadata">

**Author:** ![es\_noobb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/es_noobb/32/25849_2.png) [@es\_noobb](https://discuss.elastic.co/u/es_noobb)\
**Post date:** [February 20, 2018, 5:42am UTC](https://discuss.elastic.co/t/trying-to-filter-pie-chart-with-minimum-unique-count-of-docs/120398/3 "2018-02-20T05:42:49Z")

</div>

Thanks...it would be a lot of help

---

<div class="post-metadata">

**Author:** ![ppisljar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppisljar/32/11588_2.png) [@ppisljar](https://discuss.elastic.co/u/ppisljar)\
**Post date:** [February 20, 2018, 10:59am UTC](https://discuss.elastic.co/t/trying-to-filter-pie-chart-with-minimum-unique-count-of-docs/120398/4 "2018-02-20T10:59:12Z")

</div>

this is unfortunately not possible at the moment, as kibana does not yet support bucket selector pipeline aggregation.

---

<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:** [March 20, 2018, 10:59am UTC](https://discuss.elastic.co/t/trying-to-filter-pie-chart-with-minimum-unique-count-of-docs/120398/5 "2018-03-20T10:59:23Z")

</div>

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