# Percentile with inline script

**URL:** <https://discuss.elastic.co/t/percentile-with-inline-script/184244>\
**Category:** Elasticsearch\
**Created:** [June 4, 2019, 7:06pm UTC](https://discuss.elastic.co/t/percentile-with-inline-script/184244 "2019-06-04T19:06:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aniaks](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@aniaks](https://discuss.elastic.co/u/aniaks)\
**Post date:** [June 4, 2019, 7:06pm UTC](https://discuss.elastic.co/t/percentile-with-inline-script/184244/1 "2019-06-04T19:06:40Z")

</div>

is there a way to get the percentile values for the custom calculation instead of passing just the field to the percentile function?

---

<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:** [July 2, 2019, 7:06pm UTC](https://discuss.elastic.co/t/percentile-with-inline-script/184244/2 "2019-07-02T19:06:43Z")

</div>

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