# Visual builder metric time range

**URL:** <https://discuss.elastic.co/t/visual-builder-metric-time-range/161522>\
**Category:** Kibana\
**Created:** [December 19, 2018, 1:18pm UTC](https://discuss.elastic.co/t/visual-builder-metric-time-range/161522 "2018-12-19T13:18:28Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![sab](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@sab](https://discuss.elastic.co/u/sab)\
**Post date:** [December 19, 2018, 1:18pm UTC](https://discuss.elastic.co/t/visual-builder-metric-time-range/161522/1 "2018-12-19T13:18:28Z")

</div>

I've created a visualization based on Visual Builder / Metric : show the max of a numeric field.  
Seems easy.

It shows "0" if the time range is set to :

- Today
- This week
- This month
- This year
- Previous year
- Last 15 minutes (data a collected each 30minutes, for this one I understand why it doesn't work)
- Last 30 minutes
- Last 1 hour
- Last 4 hours
- Last 12 hours

do you have a workaround ?

Thanks

Sab

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [December 20, 2018, 6:53pm UTC](https://discuss.elastic.co/t/visual-builder-metric-time-range/161522/2 "2018-12-20T18:53:03Z")

</div>

I'm assuming you're talking about what is showing up in the legend on the right side of the visualization. This actually corresponds with the most recent bucket in the visualization, not the entire visualization itself. You'll notice if you hover over somewhere in the chart the value in the legend changes based on where in the chart you hover.

---

<div class="post-metadata">

**Author:** ![sab](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@sab](https://discuss.elastic.co/u/sab)\
**Post date:** [December 21, 2018, 8:38am UTC](https://discuss.elastic.co/t/visual-builder-metric-time-range/161522/3 "2018-12-21T08:38:46Z")

</div>

> [@sab](#):
>
> e created a visualization based on Visual Builder / Metric : show the max of a numeric field.  
> Seems easy.
> 
> It shows "0" if the time range is set to :

I don't talk about what is showing up in the legend on the right side of the visualization, because, there is no legend for a VisualBuilder/Metric type.

I talk about the metric itself. I've uploaded some pictures to help you figure out.  
Depending on the time range selected, it shows "0" as max value.

I'm on Kibana 5.6.4

Today

 ![2018-12-21%2009_33_43-%5Btest%5D%20%5BVisualize%5D%20Shared%20Pool%20-%20Kibana](https://us1.discourse-cdn.com/elastic/original/3X/1/5/15ef8b8a614f575538452ff64b78ffbfeebfb659.png)

Yesterday

 ![2018-12-21%2009_34_03-%5Btest%5D%20%5BVisualize%5D%20Shared%20Pool%20-%20Kibana](https://us1.discourse-cdn.com/elastic/original/3X/9/1/91001a38df3a432d9d60e15bfd4d7ed709a8e65b.png)

Last 24 hours

 ![2018-12-21%2009_34_14-%5Btest%5D%20%5BVisualize%5D%20Shared%20Pool%20-%20Kibana](https://us1.discourse-cdn.com/elastic/original/3X/0/d/0d8f284f63ae5b974b694eb892a808a3507698e3.png)

Last 30 days

 ![2018-12-21%2009_34_33-%5Btest%5D%20%5BVisualize%5D%20Shared%20Pool%20-%20Kibana](https://us1.discourse-cdn.com/elastic/original/3X/7/8/78280a8a2069044da814410348697b6a29437aa9.png)

Previous year

 ![2018-12-21%2009_34_46-%5Btest%5D%20%5BVisualize%5D%20Shared%20Pool%20-%20Kibana](https://us1.discourse-cdn.com/elastic/original/3X/4/e/4e581702926a042ee918fd3a2bca6077b5d9e306.png)

---

<div class="post-metadata">

**Author:** ![sab](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@sab](https://discuss.elastic.co/u/sab)\
**Post date:** [December 26, 2018, 5:17pm UTC](https://discuss.elastic.co/t/visual-builder-metric-time-range/161522/4 "2018-12-26T17:17:42Z")

</div>

up up up

---

<div class="post-metadata">

**Author:** ![sab](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@sab](https://discuss.elastic.co/u/sab)\
**Post date:** [January 7, 2019, 9:46am UTC](https://discuss.elastic.co/t/visual-builder-metric-time-range/161522/5 "2019-01-07T09:46:08Z")

</div>

anyone has an explanation ? a workaround ? a solution ?

---

<div class="post-metadata">

**Author:** ![sab](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@sab](https://discuss.elastic.co/u/sab)\
**Post date:** [January 9, 2019, 3:23pm UTC](https://discuss.elastic.co/t/visual-builder-metric-time-range/161522/6 "2019-01-09T15:23:49Z")

</div>

up...

---

<div class="post-metadata">

**Author:** ![sab](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@sab](https://discuss.elastic.co/u/sab)\
**Post date:** [January 21, 2019, 9:54am UTC](https://discuss.elastic.co/t/visual-builder-metric-time-range/161522/7 "2019-01-21T09:54:53Z")

</div>

is this a known bug ?  
if so, please let me know, so that i won't even bother myself to try to find a solution here

---

<div class="post-metadata">

**Author:** ![sab](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@sab](https://discuss.elastic.co/u/sab)\
**Post date:** [January 28, 2019, 12:28pm UTC](https://discuss.elastic.co/t/visual-builder-metric-time-range/161522/8 "2019-01-28T12:28:30Z")

</div>

no idea ?

---

<div class="post-metadata">

**Author:** ![sab](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@sab](https://discuss.elastic.co/u/sab)\
**Post date:** [January 31, 2019, 9:18am UTC](https://discuss.elastic.co/t/visual-builder-metric-time-range/161522/9 "2019-01-31T09:18:57Z")

</div>

@lukas I've added some pictures, hoping that it can help you to help me 😉

---

<div class="post-metadata">

**Author:** ![sab](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@sab](https://discuss.elastic.co/u/sab)\
**Post date:** [February 6, 2019, 9:12am UTC](https://discuss.elastic.co/t/visual-builder-metric-time-range/161522/10 "2019-02-06T09:12:32Z")

</div>

up up

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [February 6, 2019, 7:18pm UTC](https://discuss.elastic.co/t/visual-builder-metric-time-range/161522/11 "2019-02-06T19:18:50Z")

</div>

Sorry for the late response! What I was trying to explain is that the metric that shows up is not a representation of the entire date range, it is a representation of only the very last interval in the time range.

For example, if I select "Last 15 minutes" as the time range, then for the interval I select "1m" (1 minute), then the metric will show data for only the last 1 minute of the range.

Does that make sense?

---

<div class="post-metadata">

**Author:** ![sab](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@sab](https://discuss.elastic.co/u/sab)\
**Post date:** [February 7, 2019, 6:40am UTC](https://discuss.elastic.co/t/visual-builder-metric-time-range/161522/12 "2019-02-07T06:40:11Z")

</div>

> [@lukas](#):
>
> for the late response! What I was trying to explain is that the metric that shows up is not a representation of the entire date range, it is a representation of only the very last interval in the time range.

it makes no sense !

If it's a representation of only the very last interval in the time range,  
then it have to show the same thing when I choose "Today" or "Last 24 hours"  
because the very last interval in the time range is the same...

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [February 11, 2019, 3:35pm UTC](https://discuss.elastic.co/t/visual-builder-metric-time-range/161522/13 "2019-02-11T15:35:12Z")

</div>

"Today" and "Last 24 hours" are not the same time interval. "Last 24 hours" is from 24 hours ago until now, whereas "Today" means the current day starting at midnight until 11:59:59 tonight. Since "Today" includes future parts of today, it makes sense that you wouldn't have any data in the very last interval.

Also if you have the interval set to "Auto", as you change the time range it will automatically select an interval for you. You can manually set the interval and see the data change.

---

<div class="post-metadata">

**Author:** ![sab](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@sab](https://discuss.elastic.co/u/sab)\
**Post date:** [February 19, 2019, 6:42am UTC](https://discuss.elastic.co/t/visual-builder-metric-time-range/161522/14 "2019-02-19T06:42:50Z")

</div>

ok !  
I see the difference now.  
It's just a bit strange that "future -still not there- data" are taken into account in the data display

in my opinion, for "Today" it should display the metrics starting "now" not starting 11:59:59 tonight

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [February 19, 2019, 5:37pm UTC](https://discuss.elastic.co/t/visual-builder-metric-time-range/161522/15 "2019-02-19T17:37:33Z")

</div>

I think what you're wanting is "Today so far" instead of "Today." Could you give that a try?

---

<div class="post-metadata">

**Author:** ![sab](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@sab](https://discuss.elastic.co/u/sab)\
**Post date:** [March 7, 2019, 9:20am UTC](https://discuss.elastic.co/t/visual-builder-metric-time-range/161522/16 "2019-03-07T09:20:55Z")

</div>

sorry for the late answer

I've tried with "Today so far"  
Some of my visualizations get the same display =\> 0  
(even if I have set the interval set to "Auto")

---

<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 4, 2019, 9:20am UTC](https://discuss.elastic.co/t/visual-builder-metric-time-range/161522/17 "2019-04-04T09:20:55Z")

</div>

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