# Kibana scripted fields for percentage calculation

**URL:** <https://discuss.elastic.co/t/kibana-scripted-fields-for-percentage-calculation/75031>\
**Category:** Kibana\
**Created:** [February 14, 2017, 12:33pm UTC](https://discuss.elastic.co/t/kibana-scripted-fields-for-percentage-calculation/75031 "2017-02-14T12:33:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Del1](https://avatars.discourse-cdn.com/v4/letter/d/b5a626/32.png) [@Del1](https://discuss.elastic.co/u/Del1)\
**Post date:** [February 14, 2017, 12:33pm UTC](https://discuss.elastic.co/t/kibana-scripted-fields-for-percentage-calculation/75031/1 "2017-02-14T12:33:25Z")

</div>

Is it possible to calculate % value using Kibana? I wanted to create a line chart with week wise percentage for a particular field

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [February 14, 2017, 9:15pm UTC](https://discuss.elastic.co/t/kibana-scripted-fields-for-percentage-calculation/75031/2 "2017-02-14T21:15:48Z")

</div>

Not sure I entirely understand your question. Do you have a field value and you would like to convert to display a particular percentage of it? Or are you looking for the cardinality as a whole?

I would recommend either scripted fields or [Timelion](https://www.elastic.co/blog/timelion-timeline)

---

<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:** [March 14, 2017, 9:15pm UTC](https://discuss.elastic.co/t/kibana-scripted-fields-for-percentage-calculation/75031/3 "2017-03-14T21:15:56Z")

</div>

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