How to return the count in templating

I have to divide the two query in order to get the percentage and show that value in single state.
I have idea to keep the count in templating and call that in matric and divide that.

Is it possible, if templating will return the count?


That’s not possible at the moment using Influx db. See the following issue for example.