# Timelion and year on year calculations

**URL:** <https://discuss.elastic.co/t/timelion-and-year-on-year-calculations/202862>\
**Category:** Kibana\
**Tags:** timelion\
**Created:** [October 9, 2019, 3:08pm UTC](https://discuss.elastic.co/t/timelion-and-year-on-year-calculations/202862 "2019-10-09T15:08:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lmckenna](https://avatars.discourse-cdn.com/v4/letter/l/13edae/32.png) [@lmckenna](https://discuss.elastic.co/u/lmckenna)\
**Post date:** [October 9, 2019, 3:08pm UTC](https://discuss.elastic.co/t/timelion-and-year-on-year-calculations/202862/1 "2019-10-09T15:08:03Z")

</div>

Hi, i'm new to Kibana, and looking to do some year on year trends using timelion. However I can't find any info on how to go about this. For example I want to track 'this year purchases' vs. last year purchases', and then put a yoy trend line on a different axis. Is this, or something similar possible?

---

<div class="post-metadata">

**Author:** ![Aaron\_Caldwell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron_caldwell/32/45755_2.png) [@Aaron\_Caldwell](https://discuss.elastic.co/u/Aaron_Caldwell)\
**Post date:** [October 9, 2019, 10:55pm UTC](https://discuss.elastic.co/t/timelion-and-year-on-year-calculations/202862/2 "2019-10-09T22:55:26Z")

</div>

Hello Lisa,

It sounds like you'd want a 1-year offset to compare this year vs. last year's purchases. Tim Roes wrote a pretty fantastic blog article on how to use Timelion [here](https://www.elastic.co/blog/timelion-tutorial-from-zero-to-hero) which includes instructions on using offsets. You should then be able to use the trend function (also covered in the blog) to plot a trend on a second y-axis.

Regards,  
Aaron

---

<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:** [November 6, 2019, 10:55pm UTC](https://discuss.elastic.co/t/timelion-and-year-on-year-calculations/202862/3 "2019-11-06T22:55:29Z")

</div>

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