Variable - Query with a specific value

Can I assign to a dashboard variable a query like this?

probe_success{group="rest"} == 0

so that it returns only the hosts that are down?
To later assign a row repeat whit each down host

Thx