# Flux Windowing Behavior Seems Broken

**URL:** <https://community.influxdata.com/t/flux-windowing-behavior-seems-broken/33512>\
**Category:** Fluxlang\
**Tags:** influxdb, windows, time, query, flux\
**Created:** [March 11, 2024, 3:16pm UTC](https://community.influxdata.com/t/flux-windowing-behavior-seems-broken/33512 "2024-03-11T15:16:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ticchioned](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/ticchioned/32/9856_2.png) [@ticchioned](https://community.influxdata.com/u/ticchioned)\
**Post date:** [March 11, 2024, 3:16pm UTC](https://community.influxdata.com/t/flux-windowing-behavior-seems-broken/33512/1 "2024-03-11T15:16:41Z")

</div>

Maybe I just don’t understand how Influx windows data, but this behavior doesn’t seem accurate. Can someone explain to me why when i set my windowing period to 13 min, influx windows by 11 min first, then goes to a 13 min interval? How can i fix this so that EVERY interval is 13 min?

 ![image](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/f/f8c997c5030c42c8e376ca2ab099a8ae5a8aa291.png)

---

<div class="post-metadata">

**Author:** ![ticchioned](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/ticchioned/32/9856_2.png) [@ticchioned](https://community.influxdata.com/u/ticchioned)\
**Post date:** [March 11, 2024, 4:24pm UTC](https://community.influxdata.com/t/flux-windowing-behavior-seems-broken/33512/2 "2024-03-11T16:24:10Z")

</div>

Update: i solved the issue by using the start time instead of the end time in the offset line i had commented out. I accidently switched the first start time with the end time which threw everything off. Solution: use the offset line commented out.

---

<div class="post-metadata">

**Author:** ![Anaisdg](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/anaisdg/32/6401_2.png) [@Anaisdg](https://community.influxdata.com/u/Anaisdg)\
**Post date:** [March 11, 2024, 8:17pm UTC](https://community.influxdata.com/t/flux-windowing-behavior-seems-broken/33512/3 "2024-03-11T20:17:06Z")

</div>

@ticchioned YAY! Thank you for sharing your solution with the community 🙂 it’s much appreciated.
