# function for getting dashboard timeframe

**URL:** <https://community.dynatrace.com/t/function-for-getting-dashboard-timeframe/42125>\
**Category:** Dashboarding\
**Tags:** timeframe, dashboards\
**Created:** [October 17, 2023, 1:13pm UTC](https://community.dynatrace.com/t/function-for-getting-dashboard-timeframe/42125 "2023-10-17T13:13:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Desidera](https://avatars.discourse-cdn.com/v4/letter/d/f475e1/32.png) [@David\_Desidera](https://community.dynatrace.com/u/David_Desidera)\
**Post date:** [October 17, 2023, 1:13pm UTC](https://community.dynatrace.com/t/function-for-getting-dashboard-timeframe/42125/1 "2023-10-17T13:13:25Z")

</div>

Hello, I would like to design a dashboard with several Grail graph with its own timeframe range related dynamically to&nbsp; global dashboard timeframe selected by end-user.

Example:

timeseries from: dashboard\_timeframe()-4h, to: dashboard\_timeframe()-2h, …

Thank you

David

 ![GEN9_20231017_145913.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/2/723d7decf22ee94fbe6d66cb7f732d1cbebf5159.png)

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [October 17, 2023, 1:33pm UTC](https://community.dynatrace.com/t/function-for-getting-dashboard-timeframe/42125/2 "2023-10-17T13:33:27Z")

</div>

Hi&nbsp;[@David\_Desidera](https://community.dynatrace.com/user/54679)

I understand that you want individual tiles with a grail to take the timeframe that the user has set in the timeframe selector?

From what I’ve checked with myself it’s enough not to specify any timeframe and tiles accepts the one you have selected in the timeframe selector.

 ![Zrzut ekranu 2023-10-17 o 15.27.36.png](https://global.discourse-cdn.com/dynatrace/original/3X/c/f/cfac3f385821f6767ffb7ef4605e4d475c8f7e06.png)

Radek

---

<div class="post-metadata">

**Author:** ![David\_Desidera](https://avatars.discourse-cdn.com/v4/letter/d/f475e1/32.png) [@David\_Desidera](https://community.dynatrace.com/u/David_Desidera)\
**Post date:** [October 17, 2023, 1:45pm UTC](https://community.dynatrace.com/t/function-for-getting-dashboard-timeframe/42125/3 "2023-10-17T13:45:03Z")

</div>

Hi Radek,

actually I would like every tile represent its own data starting from dashboard global timeframe selected.

Tile1 = From: dashboard\_timeframe() - 2d to:&nbsp;dashboard\_timeframe() - 1d

Tile2 = From: dashboard\_timeframe() - 3d to:&nbsp;dashboard\_timeframe() - 2d

Thank you for any suggestion

David

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [October 17, 2023, 1:48pm UTC](https://community.dynatrace.com/t/function-for-getting-dashboard-timeframe/42125/4 "2023-10-17T13:48:12Z")

</div>

Okey, now I understand you.  
I don’t know if this is possible. Let me check it later and let you know:) Unless, in the meantime, the someone else will know if such a time filter is possible.

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [October 18, 2023, 7:21am UTC](https://community.dynatrace.com/t/function-for-getting-dashboard-timeframe/42125/5 "2023-10-18T07:21:56Z")

</div>

I tried to achieve the effect for the timeframe you need, but was unable to. In my opinion it is not possible to build such a time filter.

I recommend you to open Product Idea if you think it makes sense for more cases.
