# Return dataset tag with hourly values on the shift 7am - 7pm from an OPC tag

**URL:** <https://forum.inductiveautomation.com/t/return-dataset-tag-with-hourly-values-on-the-shift-7am-7pm-from-an-opc-tag/63540>\
**Category:** Ignition\
**Created:** [August 28, 2022, 3:42pm UTC](https://forum.inductiveautomation.com/t/return-dataset-tag-with-hourly-values-on-the-shift-7am-7pm-from-an-opc-tag/63540 "2022-08-28T15:42:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![felipe2010silva](https://avatars.discourse-cdn.com/v4/letter/f/54ee81/32.png) [@felipe2010silva](https://forum.inductiveautomation.com/u/felipe2010silva)\
**Post date:** [August 28, 2022, 3:42pm UTC](https://forum.inductiveautomation.com/t/return-dataset-tag-with-hourly-values-on-the-shift-7am-7pm-from-an-opc-tag/63540/1 "2022-08-28T15:42:11Z")

</div>

Hello. I would like to use a tag that contains production data and from it to return a dataset type tag with hourly Production values. between 7am-7pm

Example:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/2/2208085c19efbddb8195a8641eb88ff95c7124ba.png)

Thank you!!!

---

<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:** [August 28, 2022, 4:16pm UTC](https://forum.inductiveautomation.com/t/return-dataset-tag-with-hourly-values-on-the-shift-7am-7pm-from-an-opc-tag/63540/2 "2022-08-28T16:16:47Z")

</div>

1. You would need to tell us where the data is stored and how it was stored.
2. Is the data being retrieved from Ignition’s Historian?
