Find Ratio Between Two Metrics

This is the problem. Scripted field wont help here as it will be correct per document, but will lose its meaning once all documents will be aggregated.