# Accurate system.tag.queryTagHistory Without Aggregation

**URL:** <https://forum.inductiveautomation.com/t/accurate-system-tag-querytaghistory-without-aggregation/28473>\
**Category:** Ignition\
**Created:** [September 23, 2019, 4:44pm UTC](https://forum.inductiveautomation.com/t/accurate-system-tag-querytaghistory-without-aggregation/28473 "2019-09-23T16:44:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bart\_noble](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bart_noble/32/7399_2.png) [@bart\_noble](https://forum.inductiveautomation.com/u/bart_noble)\
**Post date:** [September 23, 2019, 4:44pm UTC](https://forum.inductiveautomation.com/t/accurate-system-tag-querytaghistory-without-aggregation/28473/1 "2019-09-23T16:44:44Z")

</div>

We’re trying to call system.tag.queryTagHistory in such a way that it simply returns every value from a specified period (e.g. the start of one day to before the next day).

However, we keep getting a record or two after our end date/time (usually just a few seconds or minutes past).

We’re understanding this probably has to do with intervals in the aggregation method, but is there a better function or way we should be using?

Again, we simply want the values recorded in a given time period _only_.
