count(distinct case when xyz is true then id else null end) as blahblah
When the case statement returns is null it shows a 0 but I would like for it to b