# Create visualization with average of the last 3 weeks

**URL:** <https://discuss.elastic.co/t/create-visualization-with-average-of-the-last-3-weeks/301288>\
**Category:** Kibana\
**Created:** [April 1, 2022, 7:46am UTC](https://discuss.elastic.co/t/create-visualization-with-average-of-the-last-3-weeks/301288 "2022-04-01T07:46:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![S-elk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/s-elk/32/98464_2.png) [@S-elk](https://discuss.elastic.co/u/S-elk)\
**Post date:** [April 1, 2022, 7:46am UTC](https://discuss.elastic.co/t/create-visualization-with-average-of-the-last-3-weeks/301288/1 "2022-04-01T07:46:54Z")

</div>

Hello!

I would like to know if there is any way to create a visualization in kibana that makes an average of a metric of the last 3 weeks. I attached a simple drawing for better understanding.

 ![MicrosoftTeams-image](https://us1.discourse-cdn.com/elastic/original/3X/f/d/fdbfdf1f9bd04578f202e4cd2418d36bf98f25b1.png)

If someone could help me, it would be of great help.

Thanks in advance.

---

<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:** [April 1, 2022, 4:55pm UTC](https://discuss.elastic.co/t/create-visualization-with-average-of-the-last-3-weeks/301288/2 "2022-04-01T16:55:05Z")

</div>

Try Lens Formula with time shifts. [Create visualizations with Lens | Kibana Guide [8.1] | Elastic](https://www.elastic.co/guide/en/kibana/current/lens.html#lens-formulas)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/8/f84c261b29576e71c53a7c7373d1aa9caa34c643.png)

---

<div class="post-metadata">

**Author:** ![S-elk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/s-elk/32/98464_2.png) [@S-elk](https://discuss.elastic.co/u/S-elk)\
**Post date:** [April 4, 2022, 9:00am UTC](https://discuss.elastic.co/t/create-visualization-with-average-of-the-last-3-weeks/301288/3 "2022-04-04T09:00:11Z")

</div>

thank you so much !!

---

<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:** [May 2, 2022, 9:01am UTC](https://discuss.elastic.co/t/create-visualization-with-average-of-the-last-3-weeks/301288/4 "2022-05-02T09:01:01Z")

</div>

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