# How to transform the "Count" labels?

**URL:** <https://discuss.elastic.co/t/how-to-transform-the-count-labels/171081>\
**Category:** Kibana\
**Created:** [March 6, 2019, 10:27am UTC](https://discuss.elastic.co/t/how-to-transform-the-count-labels/171081 "2019-03-06T10:27:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![WoJ](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/woj/32/4518_2.png) [@WoJ](https://discuss.elastic.co/u/WoJ)\
**Post date:** [March 6, 2019, 10:27am UTC](https://discuss.elastic.co/t/how-to-transform-the-count-labels/171081/1 "2019-03-06T10:27:20Z")

</div>

I use a bar graph which shows the counts of a series of different events (counting how many events of a given type there are).

The events analyzed in Kibana are actually a representative sample of actual events. This means that my count of, say, 150 does not reflect the reality: if I sample 50% of all events, the actual count for 150 should be either 300, or 50%.

Is there a way to influence what is displayed on the X-axis (the `Count` axis) by translating / modifying the numbers though a function?  
In other words, instead of displaying `n` I would like to display `n*2` and absolute extrapolated number), or `300/n*100` (an extrapolated percentage).

---

<div class="post-metadata">

**Author:** ![Aaron\_Caldwell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron_caldwell/32/45755_2.png) [@Aaron\_Caldwell](https://discuss.elastic.co/u/Aaron_Caldwell)\
**Post date:** [March 6, 2019, 6:11pm UTC](https://discuss.elastic.co/t/how-to-transform-the-count-labels/171081/2 "2019-03-06T18:11:59Z")

</div>

Hello,

This should be achievable using scripted fields. Follow the link in this similar issue:

> [@Kibana Modify Aggregation labels](https://discuss.elastic.co/t/kibana-modify-aggregation-labels/118724):
>
> I am currently trying to create a visualization counting the number of times the UUID tied to a document is shown on my website. I would like to map the UUID to the Document name in elastic for the visualization. is there a way to achieve this? one solution to this problem would be logging the document name with the UUID in the application, but I was hoping for a way to do this within the ELK stack.

Regards,  
Aaron

---

<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 3, 2019, 6:12pm UTC](https://discuss.elastic.co/t/how-to-transform-the-count-labels/171081/3 "2019-04-03T18:12:03Z")

</div>

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