# Comparison This Year vs Last Year

**URL:** https://discuss.elastic.co/t/comparison-this-year-vs-last-year/44315
**Category:** Kibana
**Created:** [March 14, 2016, 11:34am UTC](https://discuss.elastic.co/t/comparison-this-year-vs-last-year/44315 "2016-03-14T11:34:59Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![lore6673](https://avatars.discourse-cdn.com/v4/letter/l/e56c9b/32.png) [@lore6673](https://discuss.elastic.co/u/lore6673)
#### Post date: [March 14, 2016, 11:34am UTC](https://discuss.elastic.co/t/comparison-this-year-vs-last-year/44315/1 "2016-03-14T11:34:59Z")

</div>

I'm using Kibana to analyse our sales performance and I would like to create some graphs with the comparison this year vs last year. I upload on ES index our transactions and I have a field in the document called YEAR with the year of the transactions.

How can I create a graph, lets say a line chart, with two trends: this year and last year sales? I need to filter the visualization with the current year, using this field, and Kibana has to automatically shows this year trend and last year trend.

Thank you  
Lorenzo

---

<div class="post-metadata">

### Author: ![stormpython](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stormpython/32/7190_2.png) [@stormpython](https://discuss.elastic.co/u/stormpython)
#### Post date: [March 14, 2016, 5:18pm UTC](https://discuss.elastic.co/t/comparison-this-year-vs-last-year/44315/2 "2016-03-14T17:18:32Z")

</div>

There is currently no way to do this in Kibana. However, this can be done with [Timelion](https://www.elastic.co/blog/timelion-timeline).

---

<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: [July 6, 2017, 1:59pm UTC](https://discuss.elastic.co/t/comparison-this-year-vs-last-year/44315/3 "2017-07-06T13:59:11Z")

</div>


