Hi All!
I am trying to create a calculated field to determine estimated cost per job based on the resource or resource group assigned. I believe I am on the right track with my calculated field but I am getting the following syntax error. Could someone take a look and help me resolve this? Also can anyone help me understand what the different color coding means within the calculation?
Incorrect Syntax near the keyword ‘else’
sum((case when (JobOpDtl.ResourceGrpID) is null then (( JobOpDtl.EstProdHours* Resource.ProdLabRate )+(Resource.ProdBurRate * JobOpDtl.EstProdHours )+(JobOpDtl.EstSetHours * Resource.SetupLabRate)+(Resource.SetupBurRateJobOpDtl.EstSetHours) else (( JobOpDtl.EstProdHours ResourceGroup.ProdLabRate )+(ResourceGroup.ProdBurRate * JobOpDtl.EstProdHours )+(JobOpDtl.EstSetHours * ResourceGroup.SetupLabRate)+(ResourceGroup.SetupBurRate * JobOpDtl.EstSetHours) end))
