# Historical value issue

**URL:** <https://forum.inductiveautomation.com/t/historical-value-issue/72028>\
**Category:** Ignition\
**Created:** [April 4, 2023, 3:52pm UTC](https://forum.inductiveautomation.com/t/historical-value-issue/72028 "2023-04-04T15:52:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zacharyw.larson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zacharyw.larson/32/23749_2.png) [@zacharyw.larson](https://forum.inductiveautomation.com/u/zacharyw.larson)\
**Post date:** [April 4, 2023, 3:52pm UTC](https://forum.inductiveautomation.com/t/historical-value-issue/72028/1 "2023-04-04T15:52:33Z")

</div>

I have a tag set for discrete 10 seconds periodic with historical deadband of 0.01.  
The engineering range is 0 to 100.

For some reason when the tag should be reading 0.009... it is instead reading 0.004926....

Expression on the tag is (156581-155250)/156581 at this interval in time.  
I went to check the historical value of the tag, the values shown as 0 in the adhoc tends.

I checked the historian, and I don't have a value of 0.009. So I think my deadband is too high?  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/e/ae28a7c0a82d59bda115ad02cbe6879ca988ca7d.png)

Edit  
I think it is the deadband, I think I am set.

Edit  
I had grabbed the wrong tagid, but I think I am going to replace the historian query with a regular query since it is an end of shift time. I am not sure what happened that I got a 0.004926... at 6:59am.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/f/8f199849fd2430b7008cc4249a63e7f5eb46bf2b.png)

I had done `cast(dateadd(second,t_stamp/1000,'1971-1-1') as datetime) as test` to check the dates.  
(should have been 1970)  
Maybe is off by some gmt factor?  
I thought the historian used gateway time that is set to my local time though.
