# Tag history multiple timestamp when connecting multiple opc tags

**URL:** <https://forum.inductiveautomation.com/t/tag-history-multiple-timestamp-when-connecting-multiple-opc-tags/104444>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [March 31, 2025, 8:56am UTC](https://forum.inductiveautomation.com/t/tag-history-multiple-timestamp-when-connecting-multiple-opc-tags/104444 "2025-03-31T08:56:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![freggianini](https://avatars.discourse-cdn.com/v4/letter/f/e95f7d/32.png) [@freggianini](https://forum.inductiveautomation.com/u/freggianini)\
**Post date:** [March 31, 2025, 8:56am UTC](https://forum.inductiveautomation.com/t/tag-history-multiple-timestamp-when-connecting-multiple-opc-tags/104444/1 "2025-03-31T08:56:17Z")

</div>

Hello everyone, looking for support 🙂

if i connect multiple opc tags with tag history in a xy chart...

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/1/61c78753389d9539905935eeb6a172990ed50d1a.png)

... i get multiple timestamp with the same value, while i should have a single timestamp at 9.49 and 10.15

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

furthermore, if i check the database query browser, i have a single recorded value at 9.49 and 10.15, for all the three opc tags selected in the tag hysrtory.

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

how can i display in the chart only values that correspond to the original timestamps?

thanks!!

---

<div class="post-metadata">

**Author:** ![freggianini](https://avatars.discourse-cdn.com/v4/letter/f/e95f7d/32.png) [@freggianini](https://forum.inductiveautomation.com/u/freggianini)\
**Post date:** [March 31, 2025, 9:22am UTC](https://forum.inductiveautomation.com/t/tag-history-multiple-timestamp-when-connecting-multiple-opc-tags/104444/3 "2025-03-31T09:22:00Z")

</div>

I have updated the problem description

---

<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:** [March 31, 2025, 9:38am UTC](https://forum.inductiveautomation.com/t/tag-history-multiple-timestamp-when-connecting-multiple-opc-tags/104444/4 "2025-03-31T09:38:05Z")

</div>

Your tag history binding is returning a "wide" table and so it adds a row for each timestamp found on the selected tags and then adds a value for any blanks so that all cells are filled.

I suggest that you try this:

- Under `dataSources` create three arrays, `15min_act`, `15min_set` and `60min_act`.
- Create a tag binding on each to return a narrow column for **one tag**.

Now point each plot's data.source to the relevant data.  
`series.0.data.source : 15min_act`  
`series.1.data.source : 15min_set`  
`series.2.data.source : 60min_act`

That should get you most of the way there.

I would also set Query Mode to "As Stored" as this will show you the actual data points and not some possibly misleading interpolation.

---

<div class="post-metadata">

**Author:** ![freggianini](https://avatars.discourse-cdn.com/v4/letter/f/e95f7d/32.png) [@freggianini](https://forum.inductiveautomation.com/u/freggianini)\
**Post date:** [April 4, 2025, 12:29pm UTC](https://forum.inductiveautomation.com/t/tag-history-multiple-timestamp-when-connecting-multiple-opc-tags/104444/5 "2025-04-04T12:29:41Z")

</div>

it works, thanks a lot
