# Extended\_bounds for sub agg date histogram

**URL:** <https://discuss.elastic.co/t/extended-bounds-for-sub-agg-date-histogram/103081>\
**Category:** Elasticsearch\
**Created:** [October 6, 2017, 9:06pm UTC](https://discuss.elastic.co/t/extended-bounds-for-sub-agg-date-histogram/103081 "2017-10-06T21:06:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nade](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@nade](https://discuss.elastic.co/u/nade)\
**Post date:** [October 6, 2017, 9:06pm UTC](https://discuss.elastic.co/t/extended-bounds-for-sub-agg-date-histogram/103081/1 "2017-10-06T21:06:23Z")

</div>

Hello!

I am doing the following:

date aggregation by month then a sub aggregation by day.

The data has holes and I want to extend the sub aggregation by day to have results for each day. My first instinct was to use a script for the sub aggregation extended\_bounds but that does not seem like a possibility. Any suggestions or help in solving this would be much appreciated. Thanks!

---

<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:** [November 3, 2017, 9:07pm UTC](https://discuss.elastic.co/t/extended-bounds-for-sub-agg-date-histogram/103081/2 "2017-11-03T21:07:07Z")

</div>

Closed on November 3, 2017, 9:07pm UTC

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