Dynamic SQL View not working as expected
Posted: Wed Sep 15, 2010 3:08 am
Hi all,
I'm using a Dynamic SQL View to provide data for machine OEE calculations. The resulting data goes to the production shift level, and there are generally several records for a machine for a given shift. The view appears to work fine when creating reports which group the data into daily or greater chunks, but it is not working correctly when a report to the shift level is required.
The image below is showing daily OEE calculated over 5 days, and looks fine.
However, when the report is adjusted to also group by shift, displaying it with the date, the graph remains unchanged and only shift 3 is represented in the date/shift column although there are records for every shift during the week.
I know the following is a stupid report, but it shows when the same data is constructed with the shift grouped in columns, so you can see that the data does exist.
It appears that shift grouping is just being ignored. Please let me know if I'm missing something obvious.
Regards,
Greg Shearer
I'm using a Dynamic SQL View to provide data for machine OEE calculations. The resulting data goes to the production shift level, and there are generally several records for a machine for a given shift. The view appears to work fine when creating reports which group the data into daily or greater chunks, but it is not working correctly when a report to the shift level is required.
The image below is showing daily OEE calculated over 5 days, and looks fine.
However, when the report is adjusted to also group by shift, displaying it with the date, the graph remains unchanged and only shift 3 is represented in the date/shift column although there are records for every shift during the week.
I know the following is a stupid report, but it shows when the same data is constructed with the shift grouped in columns, so you can see that the data does exist.
It appears that shift grouping is just being ignored. Please let me know if I'm missing something obvious.
Regards,
Greg Shearer