# Calculating percentages at runtime

**URL:** https://discuss.elastic.co/t/calculating-percentages-at-runtime/80590
**Category:** Elasticsearch
**Created:** [March 30, 2017, 6:00am UTC](https://discuss.elastic.co/t/calculating-percentages-at-runtime/80590 "2017-03-30T06:00:49Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![bandibharath](https://avatars.discourse-cdn.com/v4/letter/b/e99b99/32.png) [@bandibharath](https://discuss.elastic.co/u/bandibharath)
#### Post date: [March 30, 2017, 6:00am UTC](https://discuss.elastic.co/t/calculating-percentages-at-runtime/80590/1 "2017-03-30T06:00:49Z")

</div>

Hi All,

We have requirement to calculate success and failure percentage based on data in elasticsearch. Now we are able to calculate success and failure count. can you please help us in calculating percentages in runtime and to list top five based on failure percentage.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [April 27, 2017, 6:01am UTC](https://discuss.elastic.co/t/calculating-percentages-at-runtime/80590/2 "2017-04-27T06:01:04Z")

</div>

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