# Dynamic maximum range in Kibana 5.6.5 (Gauge)

**URL:** <https://discuss.elastic.co/t/dynamic-maximum-range-in-kibana-5-6-5-gauge/140169>\
**Category:** Kibana\
**Created:** [July 16, 2018, 3:06pm UTC](https://discuss.elastic.co/t/dynamic-maximum-range-in-kibana-5-6-5-gauge/140169 "2018-07-16T15:06:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![giovanni.granda](https://avatars.discourse-cdn.com/v4/letter/g/e0b2c6/32.png) [@giovanni.granda](https://discuss.elastic.co/u/giovanni.granda)\
**Post date:** [July 16, 2018, 3:06pm UTC](https://discuss.elastic.co/t/dynamic-maximum-range-in-kibana-5-6-5-gauge/140169/1 "2018-07-16T15:06:20Z")

</div>

I am using Kibana version 5.6.5; is it possible to have a max range value that is dynamic for the "gauge" or "metric" visualization in order to display an accurate percentage?

We are using Kibana to display the results of some Jenkins jobs and I want to display pass/fail percentage. Currently I display a gauge with a count for the number of tests ran, and two other gauges that display the pass and fail count.

What I really need is a single visualization (metric or gauge) with a percentage of tests that passed and the max range need to be dynamic (instead of static) based of the total number of tests ran within a given time frame in order for the percentage to be accurate.

The "Pie Chart" visualization does this, but there is no way to simply display a metric with the percentage.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/7/a72a84f5aeef3d44a4ea228ed4f550e64e9846b3.png)

---

<div class="post-metadata">

**Author:** ![AurelienG](https://avatars.discourse-cdn.com/v4/letter/a/76d3ee/32.png) [@AurelienG](https://discuss.elastic.co/u/AurelienG)\
**Post date:** [July 17, 2018, 7:31am UTC](https://discuss.elastic.co/t/dynamic-maximum-range-in-kibana-5-6-5-gauge/140169/2 "2018-07-17T07:31:05Z")

</div>

Hi! I don't have any solution for you unfortunately but this matter has been discussed a few times already:

- [Set gauge ranges dynamically?](https://discuss.elastic.co/t/set-gauge-ranges-dynamically/139347)
- [Dynamic range in Goal or Gauge visualization](https://discuss.elastic.co/t/dynamic-range-in-goal-or-gauge-visualization/106032/3)
- [Looking for a way to show a "green/yellow/red" type of visual based on range](https://discuss.elastic.co/t/looking-for-a-way-to-show-a-green-yellow-red-type-of-visual-based-on-range/128723)

It's apparently not possible yet but you can take a look at the workarounds in the last two threads I linked.  
I hope this will help you.

---

<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 14, 2018, 7:31am UTC](https://discuss.elastic.co/t/dynamic-maximum-range-in-kibana-5-6-5-gauge/140169/3 "2018-08-14T07:31:09Z")

</div>

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