Hi,

I need help to calculate the division between two sum. How can I do?

**something like**

"aggs" : {

"sum_1" : { "sum" : { "field" : "flag_barisolve" } },

"sum_2" : { "sum" : { "field" : "flag_anagrafe" } }

**"division" : {**

...

**"script" : {**

**"lang": "painless",**

**"inline": "sum_1 / sum_2"**

}

}

Thanks