# Control on aggregation

**URL:** https://discuss.elastic.co/t/control-on-aggregation/172481
**Category:** Kibana
**Created:** [March 15, 2019, 8:23am UTC](https://discuss.elastic.co/t/control-on-aggregation/172481 "2019-03-15T08:23:59Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![luklan](https://avatars.discourse-cdn.com/v4/letter/l/d78d45/32.png) [@luklan](https://discuss.elastic.co/u/luklan)
#### Post date: [March 15, 2019, 8:23am UTC](https://discuss.elastic.co/t/control-on-aggregation/172481/1 "2019-03-15T08:23:59Z")

</div>

Hello Elastic Community,

I would like to filter data on a dashboard. The filter would be based on a count aggregation on some fields, with min\_doc\_count keyword. I would like to change that min\_doc\_count dynamically with the **Control** panel, like the range slider.

So is it possible to use such a dynamic filter with an aggregation ? It seems that Controls can only be used with index-patterns.

I'm using the the Elasticearch and Kibana 6.2.1 .

Thanks

---

<div class="post-metadata">

### Author: ![monfera](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/monfera/32/26467_2.png) [@monfera](https://discuss.elastic.co/u/monfera)
#### Post date: [March 15, 2019, 11:56am UTC](https://discuss.elastic.co/t/control-on-aggregation/172481/2 "2019-03-15T11:56:58Z")

</div>

Is it possible, in this case, to filter on aggregations in ES? Eg. as in [https://eric.blog/2017/07/24/how-to-apply-a-filter-to-an-aggregation-in-elasticsearch/](https://eric.blog/2017/07/24/how-to-apply-a-filter-to-an-aggregation-in-elasticsearch/)

---

<div class="post-metadata">

### Author: ![luklan](https://avatars.discourse-cdn.com/v4/letter/l/d78d45/32.png) [@luklan](https://discuss.elastic.co/u/luklan)
#### Post date: [March 18, 2019, 9:16am UTC](https://discuss.elastic.co/t/control-on-aggregation/172481/3 "2019-03-18T09:16:38Z")

</div>

This article is for Elasticsearch only and not for Kibana, so I would to know if there is a way to change that filter with Kibana Controls or something like that? The end-user doesn't want to modify directly Json because he isn't comfortable with it.

---

<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: [April 15, 2019, 9:16am UTC](https://discuss.elastic.co/t/control-on-aggregation/172481/4 "2019-04-15T09:16:44Z")

</div>

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