# Horizontal Bar calculation string

**URL:** <https://discuss.elastic.co/t/horizontal-bar-calculation-string/240341>\
**Category:** Kibana\
**Created:** [July 8, 2020, 12:05pm UTC](https://discuss.elastic.co/t/horizontal-bar-calculation-string/240341 "2020-07-08T12:05:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anton91](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@Anton91](https://discuss.elastic.co/u/Anton91)\
**Post date:** [July 8, 2020, 12:05pm UTC](https://discuss.elastic.co/t/horizontal-bar-calculation-string/240341/1 "2020-07-08T12:05:13Z")

</div>

Hello,

i have the following question: I have a string field and i want to count it and then divide it by the sum and calculate \*100 at the end. Theoretically I want to find out what percentage of each application uses and this should be displayed in the horizontal bar.  
The formula:  
Count string field / sum of all fields \* 100

Unfortunately I have not found this. Thanks in advance for the help.

Currently I have created this visualization:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/1/b129644567f304b14fdafc1d796c6026d868c9e9.png)

---

<div class="post-metadata">

**Author:** ![nickpeihl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickpeihl/32/112622_2.png) [@nickpeihl](https://discuss.elastic.co/u/nickpeihl)\
**Post date:** [July 8, 2020, 8:41pm UTC](https://discuss.elastic.co/t/horizontal-bar-calculation-string/240341/2 "2020-07-08T20:41:55Z")

</div>

Hi @Anton91. We have a [great blog post](https://www.elastic.co/blog/how-to-display-data-as-a-percentage-in-kibana-visualizations) about this. Please let me know if you still have any questions.

---

<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:** [August 5, 2020, 8:42pm UTC](https://discuss.elastic.co/t/horizontal-bar-calculation-string/240341/3 "2020-08-05T20:42:10Z")

</div>

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