jcribb
CASE WHEN NVL({estimatedwork},0) != 0 AND NVL(TO_NUMBER({custeventcustevent_initial_cost}),0) != 0 THEN ({actualwork} / NVL({estimatedwork},0) * NVL(TO_NUMBER({custeventcustevent_initial_cost}),0)) ELSE NULL END