Exclude row with 0 values

I’m trying to make a simple KO percentage panel with Elasticsearch datasource.
I have a KO query and TOTAL query and I would like to divide KO by TOTAL.
But when I have 0 values in TOTAL it display NaN.

So I would like to exclude rows when TOTAL is 0.
How can I do it please?

Could you show the data from the Kibana?