# How to get Report Keys Calculations values from DataMap in Schedule Run Script

**URL:** <https://forum.inductiveautomation.com/t/how-to-get-report-keys-calculations-values-from-datamap-in-schedule-run-script/113652>\
**Category:** Ignition\
**Created:** [January 30, 2026, 5:51am UTC](https://forum.inductiveautomation.com/t/how-to-get-report-keys-calculations-values-from-datamap-in-schedule-run-script/113652 "2026-01-30T05:51:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [January 30, 2026, 5:51am UTC](https://forum.inductiveautomation.com/t/how-to-get-report-keys-calculations-values-from-datamap-in-schedule-run-script/113652/1 "2026-01-30T05:51:43Z")

</div>

Hi everyone,

I’m trying to access the Data Source Key calculation values (such as Total, Min, Max, etc.) that are automatically generated when a report is run via Schedule → Run Script, using the `dataMap` dictionary.

For regular dataset values, I can access individual columns like this:

```python
dataMap['datKey'][0].getKeyValue("columnName")

```

However, I can’t figure out how to access the calculation values (those created by “Show Calculations” on the data source). I haven’t been able to find any documentation or examples in the manual that explain how these calculation results are exposed in `dataMap`.

Is there a supported way to access these calculation values from a report script?

Thanks in advance.

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

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 30, 2026, 5:11pm UTC](https://forum.inductiveautomation.com/t/how-to-get-report-keys-calculations-values-from-datamap-in-schedule-run-script/113652/2 "2026-01-30T17:11:10Z")

</div>

These extra keys (especially the `Running` ones) only exist at "runtime", when the report is being generated; they're calculated by the reporting engine on the fly, and I believe "lazy" - they are only evaluated if they're actually needed. Putting the basic keys into the data map would be possible, but is not currently supported; no one has ever asked us for it as far as I know.

You can always use the `system.math` functions to run the same calculations on your dataset manually:

> **[system.math | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.3/appendix/scripting-functions/system-math)**
>
> Math Functions

---

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [January 30, 2026, 7:06pm UTC](https://forum.inductiveautomation.com/t/how-to-get-report-keys-calculations-values-from-datamap-in-schedule-run-script/113652/3 "2026-01-30T19:06:19Z")

</div>

I did the same thing and calculated the sum of the tag\_hostory data source but interestingly when the size number of history query is more 500 I get different values from one the report calculated but for values less 200 both get same exact values!!!

It seems when the size number of return query increase the interpolation is different and cause this kind of error.
