# AWS / Azure monitoring setup: Timeframe comparison troubleshoot (custom timeframe versus Last X)

**URL:** <https://community.dynatrace.com/t/aws-azure-monitoring-setup-timeframe-comparison-troubleshoot-custom-timeframe-versus-last-x/43128>\
**Category:** Troubleshooting\
**Tags:** activegate, timeframe, dynatrace-managed, azure\
**Created:** [December 12, 2023, 3:33pm UTC](https://community.dynatrace.com/t/aws-azure-monitoring-setup-timeframe-comparison-troubleshoot-custom-timeframe-versus-last-x/43128 "2023-12-12T15:33:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![karolinaboba](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/karolinaboba/32/19761_2.png) [@karolinaboba](https://community.dynatrace.com/u/karolinaboba)\
**Post date:** [December 12, 2023, 3:33pm UTC](https://community.dynatrace.com/t/aws-azure-monitoring-setup-timeframe-comparison-troubleshoot-custom-timeframe-versus-last-x/43128/1 "2023-12-12T15:33:15Z")

</div>

It’s crucial to choose the appropriate timeframe option based on your needs. You can find it in the right corner of the top menu bar.

 ![Screenshot 2023-12-12 at 16.28.49.png](https://global.discourse-cdn.com/dynatrace/original/3X/a/5/a567d6353181777903ed6c1cc80c7faef43d9251.png)

- `Last X`&nbsp;displays only the most recent value of the selected metric.
- `Custom timeframe`&nbsp;allows you to specify a time range and view the average value over that period.

For example, if you select&nbsp;`Last 2 hours`, you’ll only see the most recent value from the past two hours. However, if you select a custom timeframe of&nbsp;`Last 2 hours`, you’ll see the average value for the metric over the entire two-hour period.

---

<div class="post-metadata">

**Author:** ![mkulov](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mkulov/32/11732_2.png) [@mkulov](https://community.dynatrace.com/u/mkulov)\
**Post date:** [December 18, 2023, 6:28am UTC](https://community.dynatrace.com/t/aws-azure-monitoring-setup-timeframe-comparison-troubleshoot-custom-timeframe-versus-last-x/43128/2 "2023-12-18T06:28:07Z")

</div>

[@karolinaboba](https://community.dynatrace.com/user/66955)&nbsp;, this is very interesting!

Could you please elaborate more?

An example will be of a great help.

---

<div class="post-metadata">

**Author:** ![karolinaboba](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/karolinaboba/32/19761_2.png) [@karolinaboba](https://community.dynatrace.com/u/karolinaboba)\
**Post date:** [December 18, 2023, 11:48am UTC](https://community.dynatrace.com/t/aws-azure-monitoring-setup-timeframe-comparison-troubleshoot-custom-timeframe-versus-last-x/43128/3 "2023-12-18T11:48:17Z")

</div>

Hi,&nbsp;[@mkulov](https://community.dynatrace.com/user/39837)!

Coming up with an example 🙂  
The first screenshot: When you select the&nbsp;`Custom timeframe`&nbsp;(in this case&nbsp;`Today, 11:29-13:28`), you can see values for`Successful requests`&nbsp;(in this case `958`) in the table below the chart.  
The second screenshot: When you select the timeframe&nbsp;`Last X`&nbsp;(in this case&nbsp;`Last 2 hours`), you can only see the last given value, which is 0.  
You can find the examples in the screenshots below. Hope it helps!

 ![timeframe image 2.png](https://global.discourse-cdn.com/dynatrace/original/3X/a/a/aa09841f4552134ec916ed466177d41c7cfe015d.png)

 ![last 2 hours image 2.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/c/7c8e86195bc8731b899a985f35e12ac84ca7f311.png)
