Gauge
SQL
SELECT sum(case when COMM is null then 0
when COMM = 0 then 0
else 1 end) value
, count(*) max_value
FROM apa$nf_emp