# Date Histogram and (work)week interval issue

**URL:** <https://discuss.elastic.co/t/date-histogram-and-work-week-interval-issue/75655>\
**Category:** Elasticsearch\
**Created:** [February 20, 2017, 12:26am UTC](https://discuss.elastic.co/t/date-histogram-and-work-week-interval-issue/75655 "2017-02-20T00:26:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fronti](https://avatars.discourse-cdn.com/v4/letter/f/13edae/32.png) [@fronti](https://discuss.elastic.co/u/fronti)\
**Post date:** [February 20, 2017, 12:26am UTC](https://discuss.elastic.co/t/date-histogram-and-work-week-interval-issue/75655/1 "2017-02-20T00:26:31Z")

</div>

Hi, Date Histogram does not aggregate (work)weeks by "At least 1 day", Hence while 2016 was a leap year (53 weeks) when using DH with week interval and "x-w" format 2016's last week is 52, rather than 53.  
How can I set it so 2015-12-27 - 2016-01-02 is (work)week 1 of 2016 ?  
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:** [March 20, 2017, 12:26am UTC](https://discuss.elastic.co/t/date-histogram-and-work-week-interval-issue/75655/2 "2017-03-20T00:26:38Z")

</div>

Closed on March 20, 2017, 12:26am UTC

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