# Issue while plotting percentage in Kibana

**URL:** <https://discuss.elastic.co/t/issue-while-plotting-percentage-in-kibana/110855>\
**Category:** Kibana\
**Created:** [December 8, 2017, 2:00pm UTC](https://discuss.elastic.co/t/issue-while-plotting-percentage-in-kibana/110855 "2017-12-08T14:00:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)\
**Post date:** [December 8, 2017, 6:01pm UTC](https://discuss.elastic.co/t/issue-while-plotting-percentage-in-kibana/110855/2 "2017-12-08T18:01:02Z")

</div>

Hi there,

When you do something like `TotalCount(ValueA)` I'm assuming you're aggregating all of the `ValueA` values for the documents within a certain time range. To transform that value we'd need to run some kind of script on it. Unfortunately, we don't currently support scripts for aggregations. See [Scripted field on Aggregated value](https://discuss.elastic.co/t/scripted-field-on-aggregated-value/87157/2) for a similar question.

I'm a little confused by your question though, because it seems like the Percentage result you're looking for would be a single value for a given time range, and not a value which changes over time. How were you planning on plotting this on a chart? What would you like your X-Axis to be?

Thanks,  
CJ

---

_[View the full topic](https://discuss.elastic.co/t/issue-while-plotting-percentage-in-kibana/110855)._
