I have an interesting issue on my hands. I have made a cross-company baq that totals pay hours vs labor hours by employee for the current month. I am currently using data for March. I am wanting to calculate employee utilization by dividing total labor hours by total pay hours and multiply by 100 to get our percentage. The issue I’m facing is that there are null values within labor hours because we have indirect workers. I fixed that by using isnull(sum(laborhours),0) and can then use the 0 in the calculation.
New problem, if I divide the labor hours by pay hours I get a bad SQL statement which breaks my baq, but not completely. It still shows results for the company I am currently working in with no errors highlighted in yellow. Has anyone else ran into this before? Why does it still produce some results but not all? If I remove pay hours and substitute in something like 200 the BAQ runs without issue or error.
Thanks for the help!