# Timelion giving wrong metric aggregate value on enlarging

**URL:** <https://discuss.elastic.co/t/timelion-giving-wrong-metric-aggregate-value-on-enlarging/132789>\
**Category:** Kibana\
**Tags:** timelion\
**Created:** [May 22, 2018, 10:56am UTC](https://discuss.elastic.co/t/timelion-giving-wrong-metric-aggregate-value-on-enlarging/132789 "2018-05-22T10:56:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![devika\_sudheer](https://avatars.discourse-cdn.com/v4/letter/d/58f4c7/32.png) [@devika\_sudheer](https://discuss.elastic.co/u/devika_sudheer)\
**Post date:** [May 22, 2018, 10:56am UTC](https://discuss.elastic.co/t/timelion-giving-wrong-metric-aggregate-value-on-enlarging/132789/1 "2018-05-22T10:56:10Z")

</div>

Hi,

My timelion plot which uses the following aggregation

.es(metric=max:value\_field).if(operator=gte, if=.es(metric=min:value\_field).abs(), then=.es(metric=max:value\_field), else=.es(metric=min:value\_field))

is showing wrong values when i select a portion and enlarge. If I enlarge it many times then it gives the real values

 ![](https://us1.discourse-cdn.com/elastic/original/3X/4/9/49cf962041cf81c0c618e46f3753e135e17997bf.png)  
Initial Timelion

 ![](https://us1.discourse-cdn.com/elastic/original/3X/9/0/90e8f85dd9009623b29ee34dea6e36a6b2014aba.png)  
Timelion after enlarging

---

<div class="post-metadata">

**Author:** ![chrisronline](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrisronline/32/28230_2.png) [@chrisronline](https://discuss.elastic.co/u/chrisronline)\
**Post date:** [May 23, 2018, 2:06pm UTC](https://discuss.elastic.co/t/timelion-giving-wrong-metric-aggregate-value-on-enlarging/132789/2 "2018-05-23T14:06:25Z")

</div>

Hi @devika_sudheer,

That's expected behavior. The graph shows the _sum_ of the buckets found in the time range. As you zoom in, the bucket size will continue to shrink as the time range narrows which leads to less actual data to show.

If you hover over the various points in the bottom graph, you can sorta see how the combined sum of those data points will lead to what you see in the first graph.

---

<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:** [June 20, 2018, 2:06pm UTC](https://discuss.elastic.co/t/timelion-giving-wrong-metric-aggregate-value-on-enlarging/132789/3 "2018-06-20T14:06:30Z")

</div>

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