# Percentile

**URL:** <https://discuss.elastic.co/t/percentile/227377>\
**Category:** Elasticsearch\
**Created:** [April 9, 2020, 5:20pm UTC](https://discuss.elastic.co/t/percentile/227377 "2020-04-09T17:20:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chosko](https://avatars.discourse-cdn.com/v4/letter/c/e9a140/32.png) [@chosko](https://discuss.elastic.co/u/chosko)\
**Post date:** [April 9, 2020, 5:20pm UTC](https://discuss.elastic.co/t/percentile/227377/1 "2020-04-09T17:20:00Z")

</div>

I need to calculate the percentile from a non-numeric field. I have an index to represent all events, include the user. The objective is to calculate the percentile based on events forms users (count of user field).

user | metric count  
A | 98  
B | 93  
C | 88  
D | 73  
(...)

Example: percentile 90th = 90 -\> filter users have count above this value. It's possible?  
TY

---

<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:** [May 7, 2020, 5:32pm UTC](https://discuss.elastic.co/t/percentile/227377/2 "2020-05-07T17:32:10Z")

</div>

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