Skip to content

Use Case for Aggregation Metrics Calculated based on Other Metrics #8017

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
roytmana opened this issue Oct 8, 2014 · 1 comment
Closed
Assignees

Comments

@roytmana
Copy link

roytmana commented Oct 8, 2014

Is I mentioned in #5608 it would be great to be able to define metrics as an expression against other metrics (ideally but not necessarily including other calculated metrics) on the same bucket level and if possible able to traverse to parent/child buckets. While this calculation could be done outside of ES, sorting of buckets (such as terms) on these calculated values can only be done as part of ES query

Here is one example:

For health care providers I want to find top 10 providers with highest % of overcharge relative to allowed charges (another variation would be % of overcharge relative to average charge) given charge amount and allowed amount fields in my document.

I would like to be able to define aggregation overchargePct as (totalCharges - totalAllowes) * 100 / totalAllowes and do descending sort on this calculated metric

@colings86
Copy link
Contributor

Closing in favour of #8110

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants