# I want to create a gauge that displays number of documents in a certain timeslice vs total documents

**URL:** https://discuss.elastic.co/t/i-want-to-create-a-gauge-that-displays-number-of-documents-in-a-certain-timeslice-vs-total-documents/113601
**Category:** Kibana
**Created:** [December 29, 2017, 3:33pm UTC](https://discuss.elastic.co/t/i-want-to-create-a-gauge-that-displays-number-of-documents-in-a-certain-timeslice-vs-total-documents/113601 "2017-12-29T15:33:11Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![anchasis](https://avatars.discourse-cdn.com/v4/letter/a/4af34b/32.png) [@anchasis](https://discuss.elastic.co/u/anchasis)
#### Post date: [December 29, 2017, 3:33pm UTC](https://discuss.elastic.co/t/i-want-to-create-a-gauge-that-displays-number-of-documents-in-a-certain-timeslice-vs-total-documents/113601/1 "2017-12-29T15:33:11Z")

</div>

I am using Kibana 6.0 and fail to create a gauge that visualizes the number of documents that fall withing a timeslice timestampfield:[now-1y TO now] compared to the total number of documents without slicing. How to best approach this? I could not find a good tutorial online

---

<div class="post-metadata">

### Author: ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)
#### Post date: [December 29, 2017, 5:00pm UTC](https://discuss.elastic.co/t/i-want-to-create-a-gauge-that-displays-number-of-documents-in-a-certain-timeslice-vs-total-documents/113601/2 "2017-12-29T17:00:58Z")

</div>

Hi,

I think goal chart will work for you. You can add the number of total documents in ranges under options. Check and let me know?

 ![goal_chart](https://us1.discourse-cdn.com/elastic/original/3X/6/d/6d86fcbe80a199c5b3111a6f5fabcb7e430daf5c.jpg)

Thanks,  
Bhavya

---

<div class="post-metadata">

### Author: ![anchasis](https://avatars.discourse-cdn.com/v4/letter/a/4af34b/32.png) [@anchasis](https://discuss.elastic.co/u/anchasis)
#### Post date: [December 29, 2017, 6:07pm UTC](https://discuss.elastic.co/t/i-want-to-create-a-gauge-that-displays-number-of-documents-in-a-certain-timeslice-vs-total-documents/113601/3 "2017-12-29T18:07:42Z")

</div>

Hi, but will this work if the number of total documents changes over time? This would imply that I always have to update the range manually

---

<div class="post-metadata">

### Author: ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)
#### Post date: [December 29, 2017, 11:10pm UTC](https://discuss.elastic.co/t/i-want-to-create-a-gauge-that-displays-number-of-documents-in-a-certain-timeslice-vs-total-documents/113601/4 "2017-12-29T23:10:19Z")

</div>

Ah. You do have to update it manually.  
@thomasneirynck any ideas?

Thanks,  
Bhavya

---

<div class="post-metadata">

### Author: ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)
#### Post date: [December 29, 2017, 11:35pm UTC](https://discuss.elastic.co/t/i-want-to-create-a-gauge-that-displays-number-of-documents-in-a-certain-timeslice-vs-total-documents/113601/5 "2017-12-29T23:35:03Z")

</div>

hi @anchasis @bhavyarm,

this isn't possible with the current gauge, comparing two metrics in the same gauge.

There's other charts you can make to compare these. You can make two bar-charts and position them next to each other on a dashboard: one for the total number of charts, and the other for the selection.

---

<div class="post-metadata">

### Author: ![anchasis](https://avatars.discourse-cdn.com/v4/letter/a/4af34b/32.png) [@anchasis](https://discuss.elastic.co/u/anchasis)
#### Post date: [December 30, 2017, 10:43am UTC](https://discuss.elastic.co/t/i-want-to-create-a-gauge-that-displays-number-of-documents-in-a-certain-timeslice-vs-total-documents/113601/6 "2017-12-30T10:43:00Z")

</div>

Thank you for your answer. I will take that as a solution.  
Is there anything else I can do, for example with the "Visual Builder" for example?

---

<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: [January 27, 2018, 10:43am UTC](https://discuss.elastic.co/t/i-want-to-create-a-gauge-that-displays-number-of-documents-in-a-certain-timeslice-vs-total-documents/113601/7 "2018-01-27T10:43:25Z")

</div>

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