Trying to Display Multiple Values in Singlestat for Elastic Search Data source

Hello Everyone,

I am using elastic search as my data source and i can display the total sum of two variables say x and y easily on a table and grouped them according to date and displayed the latest data.
But i want to display the same information on single stat panel like 3/54.
I can display this result using other data sources but for this task i have to use Elasticsearch only.

Kindly help me with this issue.