# Compare two time periods for same timeseries

**URL:** https://discuss.elastic.co/t/compare-two-time-periods-for-same-timeseries/297196
**Category:** Kibana
**Created:** [February 14, 2022, 9:49pm UTC](https://discuss.elastic.co/t/compare-two-time-periods-for-same-timeseries/297196 "2022-02-14T21:49:57Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![achint](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@achint](https://discuss.elastic.co/u/achint)
#### Post date: [February 14, 2022, 9:49pm UTC](https://discuss.elastic.co/t/compare-two-time-periods-for-same-timeseries/297196/1 "2022-02-14T21:49:58Z")

</div>

Hi,  
I run performance tests on different time periods and i get the application response time in ELK. I want to compare these time intervals so that i can compare the response time for different build. Response time data is coming in every 5 minutes.

For example :  
First Perf test ran 2:00 PM to 4:00PM and second test ran 6:00 to 8:00PM.(These tests can be run at any time and for any duration).

I searched on Internet but could not find any solution. Could you please help in this.

---

<div class="post-metadata">

### Author: ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)
#### Post date: [March 7, 2022, 5:35pm UTC](https://discuss.elastic.co/t/compare-two-time-periods-for-same-timeseries/297196/2 "2022-03-07T17:35:29Z")

</div>

In Lens you can shift your data, check the examples here:

> **[Create visualizations with Lens | Kibana Guide \[8.0\] | Elastic](https://www.elastic.co/guide/en/kibana/current/lens.html#lens-formulas)**
>
> Consider the production components that are used to generate reports.

You can also use TSVB for this, check on the FAQ for a pointer on how to offset a series

> **[TSVB | Kibana Guide \[8.0\] | Elastic](https://www.elastic.co/guide/en/kibana/current/tsvb.html#tsvb-faq)**
>
> Consider the production components that are used to generate reports.

---

<div class="post-metadata">

### Author: ![ghudgins](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ghudgins/32/138532_2.png) [@ghudgins](https://discuss.elastic.co/u/ghudgins)
#### Post date: [March 7, 2022, 5:50pm UTC](https://discuss.elastic.co/t/compare-two-time-periods-for-same-timeseries/297196/3 "2022-03-07T17:50:35Z")

</div>

Could try filtering a metric with KQL/Lucene to select your different time ranges (and have one dashboard metric for each time range) Or use the "Filters" aggregation in Lens to pick each block of time with KQL to see them in one visualization

---

<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 4, 2022, 5:50pm UTC](https://discuss.elastic.co/t/compare-two-time-periods-for-same-timeseries/297196/4 "2022-04-04T17:50:53Z")

</div>

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