# Report timeseries chart: issue to show raw values

**URL:** <https://forum.inductiveautomation.com/t/report-timeseries-chart-issue-to-show-raw-values/88774>\
**Category:** Ignition\
**Created:** [April 13, 2024, 11:50am UTC](https://forum.inductiveautomation.com/t/report-timeseries-chart-issue-to-show-raw-values/88774 "2024-04-13T11:50:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robbe\_Meyvis](https://avatars.discourse-cdn.com/v4/letter/r/e68b1a/32.png) [@Robbe\_Meyvis](https://forum.inductiveautomation.com/u/Robbe_Meyvis)\
**Post date:** [April 13, 2024, 11:50am UTC](https://forum.inductiveautomation.com/t/report-timeseries-chart-issue-to-show-raw-values/88774/1 "2024-04-13T11:50:44Z")

</div>

I'm trying to create a report with a timeseries chart.  
But I'm having trouble to show the raw values of a historian enabled tag.

This is how I trigger the report:  
When the "batch active" tag becomes true, I save the start timestamp in a memory tag.  
When the "batch active" tag becomes false, I save the end timestamp in a memory tag, and trigger the report.

Before the "batch active" tag becomes true, Pressure PV has value 20.  
Then while the "batch active" tag is true, I change the tag value to 25 and then to 30.  
Then, i set the tag "batch active" tag to false.

So:  
BEFORE "batch active": Pressure PV=20  
WHILE "batch active": Pressure PV=25 and a bit later 30.

But this is what the report shows:  
23 -\> 25 -\> 0  
(The tag has never been 23 nor 0.)

 ![Untitled](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/8/28108eafc30f5efdedf911c9c7c016524632e7bc.jpeg)

This are the settings:

 ![Untitled-1](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/d/9d1a5d1dc4eec6f9743dc7c78ea87122a4906cbd.jpeg)

But I tried many other settings too, but can't figure it out how to get it working properly.  
I don't want to aggregate values, I just need to show the actual values between the timeframe.

These are the tag history settings:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/a/9ad24e7fa770d95d5baa86a25483bce58c3872d8.jpeg)

Does anyone know how to configure this? Which changes I need to make?  
Thanks in advance!

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [April 13, 2024, 1:34pm UTC](https://forum.inductiveautomation.com/t/report-timeseries-chart-issue-to-show-raw-values/88774/2 "2024-04-13T13:34:15Z")

</div>

This has nothing to do with reporting. You are mis-using the historian. It isn't designed to correlate your "batch active" tag with any other tag. Or any tag with any other tag. It has no way to query your tags with conditions from other tags.

The best you can do with the historian is to query in two layers: first query "batch active" to find the time boundaries of your batches, then repeatedly query your other tags for each time span. Reporting has no tool to do this for you, but you can use a report script to construct it. See this topic if you must use this route:

> [@Report with Scripted Nested Data](https://forum.inductiveautomation.com/t/report-with-scripted-nested-data/11801):
>
> The report datasource scripting examples explain how to access the nested data in another key for use constructing a custom dataset. What I don’t see is how to construct nested data that would be suitable for use with a child table in a table group. I have a parent dataset that I’m constructing via script due to annoying limitations of an ancient SQL Server 2000 instance. I need a subquery for each row that could be done with a normal query, but there’s no way to add a regular subquery to a s…

But the proper solution would be to use transaction groups to record into a conventional database table using your batch active tag as a trigger. Include the other desired data as columns in that transaction group. Then you can use conventional queries to access the data for your report.

{ One other note: the historian's "wide" return format is incompatible with "as stored" results. Use tall format. }

---

<div class="post-metadata">

**Author:** ![Robbe\_Meyvis](https://avatars.discourse-cdn.com/v4/letter/r/e68b1a/32.png) [@Robbe\_Meyvis](https://forum.inductiveautomation.com/u/Robbe_Meyvis)\
**Post date:** [April 13, 2024, 1:48pm UTC](https://forum.inductiveautomation.com/t/report-timeseries-chart-issue-to-show-raw-values/88774/3 "2024-04-13T13:48:13Z")

</div>

Hi @pturmel , thanks for your answer.

I don't completely comprehend your answer though. I'm not sure how I'm mis-using the historian.

I have the start- and end timestamp available in 2 tags:

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

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/0/500975ff570b10f44b9f4284d586d740c9fd4710.png)

Then I let the report generate with historical data between those 2 timestamps:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/4/d4011d0da1009e94a1befbb51fdf0bc52570b757.jpeg)

So I'm not really sure why that wouldn't work?

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [April 13, 2024, 1:56pm UTC](https://forum.inductiveautomation.com/t/report-timeseries-chart-issue-to-show-raw-values/88774/4 "2024-04-13T13:56:32Z")

</div>

Just take the case where the Batch\_Active tag goes false and is recorded in the historian 1 ms before the PV value is read and recorded. The last PV value is 1 ms _after_ your period of interest and so it won't be included in the results.

That's why a row format (t\_stamp, PV0, PV1, PV2, PV3, etc.) is so much better and easier to work with.
