# Custom timeframes for dashboards

**URL:** <https://community.dynatrace.com/t/custom-timeframes-for-dashboards/32348>\
**Category:** Dashboarding\
**Tags:** customization, timeframe, dashboards-classic\
**Created:** [August 9, 2021, 12:52pm UTC](https://community.dynatrace.com/t/custom-timeframes-for-dashboards/32348 "2021-08-09T12:52:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pmehta1906](https://avatars.discourse-cdn.com/v4/letter/p/5fc32e/32.png) [@pmehta1906](https://community.dynatrace.com/u/pmehta1906)\
**Post date:** [August 9, 2021, 12:52pm UTC](https://community.dynatrace.com/t/custom-timeframes-for-dashboards/32348/1 "2021-08-09T12:52:57Z")

</div>

Hello,

I have seen that we have preset options for timeframes in Dashboards, however, is it possible to add some customized timeframes to indicate peaks or certain events, say First or Last week of every month?

Also, is it possible to apply filter only for specific hours? Say show the charts only for the peak timeslot 9 to 10 AM everyday?

If so, pls let me know how it can be done either through the UI or through json?

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [August 9, 2021, 1:16pm UTC](https://community.dynatrace.com/t/custom-timeframes-for-dashboards/32348/2 "2021-08-09T13:16:01Z")

</div>

This can be done buy setting a custom timeframe on the tiles. You might not be able to get super granular like you are requesting. A RFE would need to be submitted.

 ![ChadTurner_0-1628514946766.png](https://global.discourse-cdn.com/dynatrace/original/3X/2/a/2a5c9973bd8e8e77bf2aa591d8c34fd949670c00.png)

---

<div class="post-metadata">

**Author:** ![ryan\_ott](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ryan_ott/32/15818_2.png) [@ryan\_ott](https://community.dynatrace.com/u/ryan_ott)\
**Post date:** [August 9, 2021, 1:48pm UTC](https://community.dynatrace.com/t/custom-timeframes-for-dashboards/32348/3 "2021-08-09T13:48:11Z")

</div>

Hello,

There are certainly lots of options available to select relative timeframes on Dashboards - using built-in syntax. For example, the screenshot of the Dashboard timeframe below automatically filters the dashboard to show data from 10pm the previous day to 6am today.

See this blog post for more information:&nbsp;[Dynatrace Blog | Dynatrace news](https://www.dynatrace.com/news/blog/customize-dynatrace-analysis-timeframes-as-never-before-with-the-new-global-timeframe-selector/)

 ![ryan_ott_0-1628516806611.png](https://global.discourse-cdn.com/dynatrace/original/3X/6/c/6c8395dfc1322cc148086966dfc6af1d8ea006c0.png)

 ![ryan_ott_1-1628516814058.png](https://global.discourse-cdn.com/dynatrace/original/2X/a/aee538021756c466e4c0910f5d4389e494238a83.png)

---

<div class="post-metadata">

**Author:** ![pmehta1906](https://avatars.discourse-cdn.com/v4/letter/p/5fc32e/32.png) [@pmehta1906](https://community.dynatrace.com/u/pmehta1906)\
**Post date:** [August 9, 2021, 2:10pm UTC](https://community.dynatrace.com/t/custom-timeframes-for-dashboards/32348/4 "2021-08-09T14:10:01Z")

</div>

Thank you Ryan, this really helps!

Is it possible to go even more granular and apply custom timeframe for lets say selected days of week or weeks of month.

The idea behind asking this is our services show peak usage every Monday mornings and we would like to capture and see only these peak periods in one of the charts for comparison/trending.

---

<div class="post-metadata">

**Author:** ![ryan\_ott](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ryan_ott/32/15818_2.png) [@ryan\_ott](https://community.dynatrace.com/u/ryan_ott)\
**Post date:** [August 9, 2021, 6:36pm UTC](https://community.dynatrace.com/t/custom-timeframes-for-dashboards/32348/5 "2021-08-09T18:36:07Z")

</div>

As far as I know, there isn’t a way to dynamically chart “Last Monday”, as an example. Only timeframes relative to the current date/time - “Last Month”, “Last Week”, “Last 5 minutes”, for example. However, you may still be able to configure what you are looking for by using syntax such as ‘previous week to previous week+1d’ - which essentially is “Last Monday”.

 ![ryan_ott_0-1628534122892.png](https://global.discourse-cdn.com/dynatrace/original/3X/9/b/9b158b5fb205029715f0763b2d0daab2ac951076.png)

---

<div class="post-metadata">

**Author:** ![Omar\_Fouda](https://avatars.discourse-cdn.com/v4/letter/o/c2a13f/32.png) [@Omar\_Fouda](https://community.dynatrace.com/u/Omar_Fouda)\
**Post date:** [August 10, 2021, 6:25pm UTC](https://community.dynatrace.com/t/custom-timeframes-for-dashboards/32348/6 "2021-08-10T18:25:39Z")

</div>

You can also try the alignment. So now-w/w should get you the first day of the week i think. And then you can add or subtract days to that expression
