# Comparing timeseries with average week

**URL:** <https://discuss.elastic.co/t/comparing-timeseries-with-average-week/102091>\
**Category:** Kibana\
**Created:** [September 28, 2017, 9:55am UTC](https://discuss.elastic.co/t/comparing-timeseries-with-average-week/102091 "2017-09-28T09:55:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![1915](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/1915/32/22603_2.png) [@1915](https://discuss.elastic.co/u/1915)\
**Post date:** [September 28, 2017, 9:55am UTC](https://discuss.elastic.co/t/comparing-timeseries-with-average-week/102091/1 "2017-09-28T09:55:16Z")

</div>

I'm comparing logs in Timelion with the current week and the week before, using the offset=-1w syntax.

However I would also like to compare these values with the average week over a period of one year.

Can I somehow chain 52 timeseries and divide them by 52 or is there a simpler solution?

Currently my graph looks like this.

 ![Skärmbild från 2017-09-28 11-53-00](https://us1.discourse-cdn.com/elastic/original/3X/7/f/7fb7da21923ef7d7a752b85bd586629dd28c1a79.png)

---

<div class="post-metadata">

**Author:** ![simianhacker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simianhacker/32/3383_2.png) [@simianhacker](https://discuss.elastic.co/u/simianhacker)\
**Post date:** [September 28, 2017, 3:10pm UTC](https://discuss.elastic.co/t/comparing-timeseries-with-average-week/102091/2 "2017-09-28T15:10:37Z")

</div>

There isn't an automated way to do that you will have to try and manually build that statement.

---

<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:** [October 26, 2017, 3:10pm UTC](https://discuss.elastic.co/t/comparing-timeseries-with-average-week/102091/3 "2017-10-26T15:10:38Z")

</div>

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