# How to configure two dropdowns for time range selection in Dashboard?

**URL:** <https://community.dynatrace.com/t/how-to-configure-two-dropdowns-for-time-range-selection-in-dashboard/51070>\
**Category:** Dashboarding\
**Tags:** timeframe, dashboards\
**Created:** [April 4, 2025, 11:43am UTC](https://community.dynatrace.com/t/how-to-configure-two-dropdowns-for-time-range-selection-in-dashboard/51070 "2025-04-04T11:43:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aakansha](https://avatars.discourse-cdn.com/v4/letter/a/bc8723/32.png) [@Aakansha](https://community.dynatrace.com/u/Aakansha)\
**Post date:** [April 4, 2025, 11:43am UTC](https://community.dynatrace.com/t/how-to-configure-two-dropdowns-for-time-range-selection-in-dashboard/51070/1 "2025-04-04T11:43:05Z")

</div>

Need to have 2 dropdowns&nbsp;for time range selection in dynatrace dashboard. Can anyone help with this?

Below is an example from Splunk dashboard:

 ![Aakansha_0-1743766885441.png](https://global.discourse-cdn.com/dynatrace/original/2X/5/58a28a2955e641a762515fa26eb33e9fcef45159.png)

---

<div class="post-metadata">

**Author:** ![yanezza](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yanezza/32/5036_2.png) [@yanezza](https://community.dynatrace.com/u/yanezza)\
**Post date:** [April 5, 2025, 5:06pm UTC](https://community.dynatrace.com/t/how-to-configure-two-dropdowns-for-time-range-selection-in-dashboard/51070/2 "2025-04-05T17:06:44Z")

</div>

We currently support one timeframe selector, but in the new Dashboard (Gen3), you can use [variables](https://docs.dynatrace.com/docs/analyze-explore-automate/dashboards-and-notebooks/dashboards-new/components/dashboard-component-variable):

- Create two variables based on [user input](https://docs.dynatrace.com/docs/analyze-explore-automate/dashboards-and-notebooks/dashboards-new/components/dashboard-component-variable#define-variable-text) (_eg. to and from_).
- or Create a variable with a fixed timeframe [based on a JavaScript Code](https://docs.dynatrace.com/docs/analyze-explore-automate/dashboards-and-notebooks/dashboards-new/components/dashboard-component-variable#define-variable-code).

After that, you can use these variables in DQL queries within the tiles. (in the DQL [fetch](https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-query-language/commands/data-source-commands#fetch) or filtering by timestamp)
