# Moving average and referring previous value in Dashboard

**URL:** <https://community.dynatrace.com/t/moving-average-and-referring-previous-value-in-dashboard/52725>\
**Category:** Dashboarding\
**Tags:** dynatrace-managed, data-explorer\
**Created:** [July 31, 2025, 2:43am UTC](https://community.dynatrace.com/t/moving-average-and-referring-previous-value-in-dashboard/52725 "2025-07-31T02:43:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vijayt](https://avatars.discourse-cdn.com/v4/letter/v/e9bcb4/32.png) [@Vijayt](https://community.dynatrace.com/u/Vijayt)\
**Post date:** [July 31, 2025, 2:43am UTC](https://community.dynatrace.com/t/moving-average-and-referring-previous-value-in-dashboard/52725/1 "2025-07-31T02:43:29Z")

</div>

is there any option to calculate moving average [avg transformation?]

and&nbsp; any option to compare with&nbsp; previous data points/aggregation values

for example i want to compare last 1 max memory is greater than current max memory

I have access only dataexplorer NOT DSQL

---

<div class="post-metadata">

**Author:** ![Ahmedrahbi](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ahmedrahbi/32/20520_2.png) [@Ahmedrahbi](https://community.dynatrace.com/u/Ahmedrahbi)\
**Post date:** [August 1, 2025, 8:13pm UTC](https://community.dynatrace.com/t/moving-average-and-referring-previous-value-in-dashboard/52725/2 "2025-08-01T20:13:22Z")

</div>

Yes, there are multiple ways to achieve this, but I personally prefer this method:  
After you pin the metric to the dashboard, click on it and you’ll see a panel on the left side where you can set a custom timeframe (for example, the last 5 minutes).  
Once set, you can clone the tile without the fixed custom timeframe, and it will always show the latest 5-minute data dynamically.

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [August 1, 2025, 9:33pm UTC](https://community.dynatrace.com/t/moving-average-and-referring-previous-value-in-dashboard/52725/3 "2025-08-01T21:33:57Z")

</div>

[@Vijayt](https://community.dynatrace.com/user/75656)&nbsp;would :rollup transformation in metric selector do the moving average for you?

You have at least two options to compare:

- use :timeshift transformation in metric selector (unfortunately, it’s absolute only). You can also use metric expressions and subtract two metrics
- use two tiles on a dashboard and set a custom time frame for one tile
