# Help with a visualization

**URL:** https://discuss.elastic.co/t/help-with-a-visualization/301267
**Category:** Kibana
**Created:** [March 31, 2022, 9:59pm UTC](https://discuss.elastic.co/t/help-with-a-visualization/301267 "2022-03-31T21:59:39Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![edu\_perez\_alvarez](https://avatars.discourse-cdn.com/v4/letter/e/46a35a/32.png) [@edu\_perez\_alvarez](https://discuss.elastic.co/u/edu_perez_alvarez)
#### Post date: [March 31, 2022, 9:59pm UTC](https://discuss.elastic.co/t/help-with-a-visualization/301267/1 "2022-03-31T21:59:40Z")

</div>

Hello!  
I have a simple visualization in a dashboard. X-axis is the @timestamp. Y-axis is a MetricValue of a service. I want to add another visualization (another graphic) with the same X-axis. Here, the MetricValue for each @timestamp has to be the average value of the MetricValue in the last 3 weeks for that @timestamp.  
In other words, for example, if @timestamp is 28-03-2022 12:30, the MetricValue I want to visualize is (MetricValue(@timestamp=21-03-12:30) + MetricValue(@timestamp=14-03-12:30) + MetricValue(@timestamp=07-03-12:30))/3 . I don't know how to carry out this.

Can anyone help me ? I would be very grateful

---

<div class="post-metadata">

### Author: ![Marta\_Bondyra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marta_bondyra/32/102122_2.png) [@Marta\_Bondyra](https://discuss.elastic.co/u/Marta_Bondyra)
#### Post date: [April 4, 2022, 8:15am UTC](https://discuss.elastic.co/t/help-with-a-visualization/301267/2 "2022-04-04T08:15:00Z")

</div>

Hi @edu_perez_alvarez,

so the only difference between the panels are different time ranges? You could customize the time range in a single visualization in your dashboard:

 ![Screenshot 2022-04-04 at 10.13.34](https://us1.discourse-cdn.com/elastic/original/3X/9/a/9a016ea63b28cdd905468ca1d704ec873a7c07de.png)

Here's the two visualizations side by side:

 ![Screenshot 2022-04-04 at 10.13.24](https://us1.discourse-cdn.com/elastic/original/3X/a/f/af330add6a67a4cd8da265b6ea155d2b7fb20fdc.png)

If using Lens, there's also a useful feature of [timeshift](https://www.elastic.co/guide/en/kibana/current/lens.html#compare-data-with-time-offsets) if the solution above doesn't satisfy your needs. Let me know!

---

<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, 8:15am UTC](https://discuss.elastic.co/t/help-with-a-visualization/301267/3 "2022-05-02T08:15:54Z")

</div>

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