# Creating Gauge Visualization in percentages

**URL:** https://discuss.elastic.co/t/creating-gauge-visualization-in-percentages/147916
**Category:** Kibana
**Created:** [September 10, 2018, 8:42am UTC](https://discuss.elastic.co/t/creating-gauge-visualization-in-percentages/147916 "2018-09-10T08:42:13Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Susmitha\_Devathi](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@Susmitha\_Devathi](https://discuss.elastic.co/u/Susmitha_Devathi)
#### Post date: [September 10, 2018, 8:42am UTC](https://discuss.elastic.co/t/creating-gauge-visualization-in-percentages/147916/1 "2018-09-10T08:42:13Z")

</div>

Hi Team,

I have two numerical fields that contain Success & Error Transactions.I'd like setup gauge in percentages.  
Math:  
Success TX's %=Success TX's/Total Tx's_100  
Error TX's%=Error TX's/Total Tx's_100

This should leave me with a success & error Transaction percentages in guage.  
Help me to create guages.

---

<div class="post-metadata">

### Author: ![Joe\_Fleming](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joe_fleming/32/3561_2.png) [@Joe\_Fleming](https://discuss.elastic.co/u/Joe_Fleming)
#### Post date: [September 10, 2018, 10:04pm UTC](https://discuss.elastic.co/t/creating-gauge-visualization-in-percentages/147916/2 "2018-09-10T22:04:43Z")

</div>

Unfortunately, gauges in Kibana only work with a static upper bound, so you can't do what you're asking for with a gauge (unless, you have a static upper bound, but that's really unlikely).

The only way to get a percentage chart in Kibana is to use a Bar chart (horizontal or vertical) and set the bar axis to "percent mode," which you can do in the sidebar under Metrics & Axes:

 ![39](https://us1.discourse-cdn.com/elastic/original/3X/8/4/840513dbd467a8a37fe77ebd55f59ba4836927be.png)

Then you can use a Filter agg to only show the value(s) you care about. In your case, you'll want to filter on `success_field: 1`, where `success_field` is the success indicator field, and I'm assuming you are storing a 1 or 0 in there. tweak as needed. Here's an idea of what you'll end up with (of course, my data is quite different from yours):

 ![48](https://us1.discourse-cdn.com/elastic/original/3X/9/5/958404d10d49e5524896c0fb7b627db225b2f5e7.png)

Alternatively, if you stores success and error in the same field (where success was 1, and error was 0), you could see what you wanted with a pie chart too, which would show the relative percentages of each value. As far as I can tell, there's really no other way to get percentage info out of Kibana.

---

<div class="post-metadata">

### Author: ![TheSmartMonkey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thesmartmonkey/32/33965_2.png) [@TheSmartMonkey](https://discuss.elastic.co/u/TheSmartMonkey)
#### Post date: [September 11, 2018, 9:57am UTC](https://discuss.elastic.co/t/creating-gauge-visualization-in-percentages/147916/3 "2018-09-11T09:57:52Z")

</div>

hi @Susmitha_Devathi seem like we have the same needs I created a github topic related to that don't hesitate to like it if you want this feature to be added in a future Kibana version :

> <https://github.com/elastic/kibana/issues/22872>

---

<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: [October 9, 2018, 9:58am UTC](https://discuss.elastic.co/t/creating-gauge-visualization-in-percentages/147916/4 "2018-10-09T09:58:02Z")

</div>

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