# Average bucket in histogram

**URL:** <https://discuss.elastic.co/t/average-bucket-in-histogram/189438>\
**Category:** Elasticsearch\
**Created:** [July 8, 2019, 10:48pm UTC](https://discuss.elastic.co/t/average-bucket-in-histogram/189438 "2019-07-08T22:48:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![A\_google\_user](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/a_google_user/32/46709_2.png) [@A\_google\_user](https://discuss.elastic.co/u/A_google_user)\
**Post date:** [July 8, 2019, 10:48pm UTC](https://discuss.elastic.co/t/average-bucket-in-histogram/189438/1 "2019-07-08T22:48:41Z")

</div>

> <https://stackoverflow.com/questions/53614689/average-bucket-aggregation-including-0-values>

What if the zero value buckets are in the beginning or end? then it does not take them in account

---

<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:** [August 5, 2019, 10:48pm UTC](https://discuss.elastic.co/t/average-bucket-in-histogram/189438/2 "2019-08-05T22:48:56Z")

</div>

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