Panel STAT - .sum and subtract


I’m using a function to sum (.sum) of my ICMP collection. So my links are UP(1).

How can I do the same procedure to make the data that is below?

The DOWN die would be a different panel.
Datasource: Zabbix
Grafana: 7.5

Simple… Monitoring trigger problem!