$ 0 0 Ah, perfect that does the trick. and to make it look nice: ROUND((ABS(wouldtrigger*1.000)/ABS(total))*100,2) as percentage