# TSVB Percentage Gauge

**URL:** https://discuss.elastic.co/t/tsvb-percentage-gauge/221692
**Category:** Kibana
**Created:** [March 2, 2020, 1:58pm UTC](https://discuss.elastic.co/t/tsvb-percentage-gauge/221692 "2020-03-02T13:58:41Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![KoettingSimon](https://avatars.discourse-cdn.com/v4/letter/k/ba9def/32.png) [@KoettingSimon](https://discuss.elastic.co/u/KoettingSimon)
#### Post date: [March 2, 2020, 1:58pm UTC](https://discuss.elastic.co/t/tsvb-percentage-gauge/221692/1 "2020-03-02T13:58:42Z")

</div>

Hi All,  
Im trying my first TSVB-Visualisation.  
I have 2 diffrent index both have the field id.  
I want to have the proportion of the count of the field id from index1 to the count of the field id in both indexes  
So that i can see something like 60% of all documents are in the index 1.

I found this blog entry: [Counting occurrence of two events and then displaying the percentage](https://discuss.elastic.co/t/counting-occurrence-of-two-events-and-then-displaying-the-percentage/96040/2)

but i cant find the calculation aggregation (Version 7.5.1)

 ![grafik](https://us1.discourse-cdn.com/elastic/original/3X/e/f/efd4ba46644de57dac25bc0e791b38f97233429d.png)

how can i realize that?

Thanks,  
Simon

---

<div class="post-metadata">

### Author: ![markov00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markov00/32/33316_2.png) [@markov00](https://discuss.elastic.co/u/markov00)
#### Post date: [March 23, 2020, 11:11am UTC](https://discuss.elastic.co/t/tsvb-percentage-gauge/221692/2 "2020-03-23T11:11:56Z")

</div>

Hi @KoettingSimon  
That was an old version of TSVB, the `Calculation` aggregation is now called Bucket Script.  
There is also an updated blog post with percentage calculation if you are interested:

> **[How to display data as a percentage in Kibana visualizations](https://www.elastic.co/blog/how-to-display-data-as-a-percentage-in-kibana-visualizations)**
>
> Using percentages in data analytics is essential for effective numeric comparison, especially when working with drastically different sample sizes or totals. Find out how to calculate percentages in Kibana with common visualizations, including a pie...

---

<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 20, 2020, 11:18am UTC](https://discuss.elastic.co/t/tsvb-percentage-gauge/221692/3 "2020-04-20T11:18:42Z")

</div>

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