# How to create Year on Year comparison of data using TSVB

**URL:** https://forum.opensearch.org/t/how-to-create-year-on-year-comparison-of-data-using-tsvb/18072
**Category:** OpenSearch Dashboards
**Created:** [February 26, 2024, 6:59am UTC](https://forum.opensearch.org/t/how-to-create-year-on-year-comparison-of-data-using-tsvb/18072 "2024-02-26T06:59:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![MtsNode](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@MtsNode](https://forum.opensearch.org/u/MtsNode)
#### Post date: [February 26, 2024, 6:59am UTC](https://forum.opensearch.org/t/how-to-create-year-on-year-comparison-of-data-using-tsvb/18072/1 "2024-02-26T06:59:10Z")

</div>

**Versions** (relevant - OpenSearch/Dashboard/Server OS/Browser):  
OpenSearch: 2.6.0

**Describe the issue** :  
I want to create a visualisation using TSVB, where I want to see data for previous year and current year as a two separate lines, so that it’s easier to observe the trend across two years. I’m attaching a screenshot of what I want to see for a reference.  
I’ve a timestamp and number of orders placed at a particular timestamp in the index.

**Configuration** :

**Relevant Logs or Screenshots** :

This is how I want to represent the data.  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/f/f2b156cad8c7944ae40ccaac546c936cd0208454.png)
