Work with aggregations in Kibana

In Kibana I have a dashboard with relevant information. Aggregated information split into parts.

What I want is to calculate with these aggregations.

Without explaining my application I better give you an example of what I want.

Lets say I have a group of members split into man, woman and child.

On my dashboard I see:
500 members
200 man
100 woman
200 child

What I want is to show the ratio man / woman = 2.

Is that possible, an how do I do that.

You may be able to do this with a scripted field?