Performing Sum in Case Statement
Test

Select case when sc.ars = 0 
            then 0
            else SUM(sc.ars / NULLIF(SUM(ic.lit) OVER (PARTITION BY NULL),0))
            end
FROM salesconfig sc
Left Join income ic
On sc.empID = ic.empID