Filter zabbix data on grafana

Hy all I use zabbix for my data source, i have total 44 devices. i want to count snmp availability by the value only ‘1’. So if it count, it will be total 43 devices., but i don’t know how to filter it using zabbix data source. can someone help me please ?