# Table history query some times return strange result

**URL:** <https://forum.inductiveautomation.com/t/table-history-query-some-times-return-strange-result/27740>\
**Category:** Ignition\
**Created:** [August 24, 2019, 6:55am UTC](https://forum.inductiveautomation.com/t/table-history-query-some-times-return-strange-result/27740 "2019-08-24T06:55:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chris.roys](https://avatars.discourse-cdn.com/v4/letter/c/e9c0ed/32.png) [@chris.roys](https://forum.inductiveautomation.com/u/chris.roys)\
**Post date:** [August 24, 2019, 6:55am UTC](https://forum.inductiveautomation.com/t/table-history-query-some-times-return-strange-result/27740/1 "2019-08-24T06:55:21Z")

</div>

Hello  
I setup history for a tag with 1 min scan class and increment it in gateway script every 1 sec in gateway version 7.9.10/11.  
When I try to get min, max or range result, depend on selected time range it get strange wrong value. for example in attach image I get 414 for range,min and max query in selected range!!!  
when I change time slider to 10:50(which is the time for future) the result is correct.  
Could anyone explain me how ignition handle history query and what I did wrong?

 ![Untitled](https://us1.discourse-cdn.com/inductiveautomation/original/2X/9/9cf3084f4f887bb247e371a7806b22dd90fbcd9a.jpeg)
