Getting incorrect values for certain tags from Tag Historian queries in Report

I’m trying to have a table show different values for a machine at 9 am each day. I wrote a script data source that does this, but I think the raw data I’m pulling from must be off or I’m not pulling the raw data correctly from Tag Historian(or some other method). The top table in both images is the result of my script datasource table showing 1 data point whereas the bottom table is the result of pulling my raw data queries into a table.