# Aggregation Count

**URL:** <https://discuss.elastic.co/t/aggregation-count/60006>\
**Category:** Kibana\
**Created:** [September 7, 2016, 3:42pm UTC](https://discuss.elastic.co/t/aggregation-count/60006 "2016-09-07T15:42:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Senninp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/senninp/32/12409_2.png) [@Senninp](https://discuss.elastic.co/u/Senninp)\
**Post date:** [September 7, 2016, 3:42pm UTC](https://discuss.elastic.co/t/aggregation-count/60006/1 "2016-09-07T15:42:11Z")

</div>

Hi,

I would like to know if is it possible to count only where aggregation Count \> 20 ? And where count value = Count - 20

![](https://us1.discourse-cdn.com/elastic/original/2X/4/436fc699e5243a7ee19236f04704e2949f7a5204.JPG)

1 : Is it possible to count only a Bars ? (here 4)

Finally i'would like to have number of max threshold.

Thank you,

---

<div class="post-metadata">

**Author:** ![spalger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spalger/32/14092_2.png) [@spalger](https://discuss.elastic.co/u/spalger)\
**Post date:** [September 8, 2016, 9:56pm UTC](https://discuss.elastic.co/t/aggregation-count/60006/2 "2016-09-08T21:56:07Z")

</div>

Using timelion should allow you to limit buckets based on their count, but I can't think of a way to count just the bars that are greater than a limit outside of a pipeline aggregation (which aren't yet supported 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:** [July 6, 2017, 1:39pm UTC](https://discuss.elastic.co/t/aggregation-count/60006/3 "2017-07-06T13:39:18Z")

</div>


