CASE WHEN {title}='Engineering : Build Engineering' THEN
SUM(COALESCE
({custevent_estimatedworkl3av},0)*110-COALESCE
({custevent_estimatedworkl3av},0)*50)/SUM(NULLIF
(COALESCE
({custevent_estimatedworkl3av},0)*110,0)) WHEN {title}=
('Engineering : Drafting') THEN SUM(COALESCE
({custevent_estimatedworkl3av},0)*75-COALESCE
({custevent_estimatedworkl3av},0)*50)/SUM(NULLIF
(COALESCE
({custevent_estimatedworkl3av},0)*75,0)) ELSE 0
END