luvtitans50
MIS
I am trying to perform the following calculation:
sum(CASE when reporttype = 'Margin' and BillingType = 'Staffing' then PlanMTD END)/
sum(CASE when reporttype = 'Billing' and BillingType = 'Staffing' then PlanMTD END)*100
and I am getting "Divide by zero error"
How can go about avoiding that error. I understand what is causing this error but not sure how to write the code to get around it.
Thanks a million!!!
sum(CASE when reporttype = 'Margin' and BillingType = 'Staffing' then PlanMTD END)/
sum(CASE when reporttype = 'Billing' and BillingType = 'Staffing' then PlanMTD END)*100
and I am getting "Divide by zero error"
How can go about avoiding that error. I understand what is causing this error but not sure how to write the code to get around it.
Thanks a million!!!