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

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

Thank you!!!

  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?