# Get Most Recent Historian Value Script

**URL:** <https://forum.inductiveautomation.com/t/get-most-recent-historian-value-script/53912>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [December 8, 2021, 10:12pm UTC](https://forum.inductiveautomation.com/t/get-most-recent-historian-value-script/53912 "2021-12-08T22:12:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Benjamin\_Sperl](https://avatars.discourse-cdn.com/v4/letter/b/aeb1de/32.png) [@Benjamin\_Sperl](https://forum.inductiveautomation.com/u/Benjamin_Sperl)\
**Post date:** [December 8, 2021, 10:12pm UTC](https://forum.inductiveautomation.com/t/get-most-recent-historian-value-script/53912/1 "2021-12-08T22:12:22Z")

</div>

I am attempting to read the most recent historian entries for some tags in a remote historian without any interpolation. Basically the current value of the tag according to the historian. There was a similar post previously that went unanswered ([LINK](https://forum.inductiveautomation.com/t/querying-tag-history-by-quantity-not-time-range-with-scripting/34627)).

I’ve tried playing around with both the queryTagCalculations and queryTagHistory with mixed results. queryTagHistory seems to interpolate and queryTagCalculations sometimes returns no values for unknown reasons.

```auto
system.tag.queryTagCalculations(paths=pathList, calculations=["LastValue"], startDate=startTime, endDate=endTime, noInterpolation = True)

system.tag.queryTagHistory(paths=pathList, startDate=startTime, endDate=endTime, returnSize=1, aggregationMode="LastValue", returnFormat='Tall')

```
