Query dsl for elastic

I have a field named status, who have values 1,2 or 3 . i need output count( when status = 1)/ count( when status =2) , Group by year. How can i do this using kibana or inside DeVtools of kibana .

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.