# Timelion: offset function returns the same shapes

**URL:** <https://discuss.elastic.co/t/timelion-offset-function-returns-the-same-shapes/125143>\
**Category:** Kibana\
**Tags:** timelion\
**Created:** [March 22, 2018, 8:58am UTC](https://discuss.elastic.co/t/timelion-offset-function-returns-the-same-shapes/125143 "2018-03-22T08:58:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nxthuong](https://avatars.discourse-cdn.com/v4/letter/n/3d9bf3/32.png) [@nxthuong](https://discuss.elastic.co/u/nxthuong)\
**Post date:** [March 22, 2018, 8:58am UTC](https://discuss.elastic.co/t/timelion-offset-function-returns-the-same-shapes/125143/1 "2018-03-22T08:58:08Z")

</div>

I got the same shapes when I use offset function in Timelion.  
Is that my mistake or something wrong with offset function of Timelion?

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/3/23c8ea4960dde2fce120b3614b2352185e6c7935.png)

---

<div class="post-metadata">

**Author:** ![timroes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timroes/32/19712_2.png) [@timroes](https://discuss.elastic.co/u/timroes)\
**Post date:** [March 22, 2018, 12:01pm UTC](https://discuss.elastic.co/t/timelion-offset-function-returns-the-same-shapes/125143/2 "2018-03-22T12:01:59Z")

</div>

I think there is some confusion about the `offset` parameter. This parameter shifts the time of the input series by the specified amount (in this case 2 days). So the shape will always be exactly the same, just shifted on the x-axis.

What were you trying to achieve? Maybe there is another function or parameter for that.

---

<div class="post-metadata">

**Author:** ![nxthuong](https://avatars.discourse-cdn.com/v4/letter/n/3d9bf3/32.png) [@nxthuong](https://discuss.elastic.co/u/nxthuong)\
**Post date:** [March 23, 2018, 12:55am UTC](https://discuss.elastic.co/t/timelion-offset-function-returns-the-same-shapes/125143/3 "2018-03-23T00:55:09Z")

</div>

Thank you for your reply.  
I suppose that the offset function will remove the data corresponding with the provided time range and re-calculate the metric, so the shape should change.  
In my case, I use count metric so it might not affect the shape but when I use metric=avg it will difference, right?

---

<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 20, 2018, 12:55am UTC](https://discuss.elastic.co/t/timelion-offset-function-returns-the-same-shapes/125143/4 "2018-04-20T00:55:25Z")

</div>

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