How to realization ifelse condition branch?

such as if metrisA>0 then 1 if metrisA>0 and metrisB>0 then 2
thanks.

Hi,

This depends on what datasource you’re using in Grafana.

Marcus

thanks for your reply,now i use triggers count Achieve the goal:grinning: