# Grafana Dashboard with two panels and different time-ranges

**URL:** <https://discourse.nodered.org/t/grafana-dashboard-with-two-panels-and-different-time-ranges/84704>\
**Category:** General\
**Created:** [18 January 2024 22:09 UTC](https://discourse.nodered.org/t/grafana-dashboard-with-two-panels-and-different-time-ranges/84704 "2024-01-18T22:09:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![wwyyrrmm](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/wwyyrrmm/32/75728_2.png) [@wwyyrrmm](https://discourse.nodered.org/u/wwyyrrmm)\
**Post date:** [18 January 2024 22:09 UTC](https://discourse.nodered.org/t/grafana-dashboard-with-two-panels-and-different-time-ranges/84704/1 "2024-01-18T22:09:09Z")

</div>

I have created a grafana dahboard  
added 2 panels with influxdb queries.  
the panels should have different time ranges.  
I have changed the query options to 1d (one day)  
at the other panel I have changed the query options to 1y (one year)  
at design time the graphs look well.  
at "runtime" both panels show time range 1y, if I change the time range to 1 day, the panel1 shows correct data.

Does anybody know, how to show different timeranges in one dashboard?  
Thx Carsten

---

<div class="post-metadata">

**Author:** ![wwyyrrmm](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/wwyyrrmm/32/75728_2.png) [@wwyyrrmm](https://discourse.nodered.org/u/wwyyrrmm)\
**Post date:** [18 January 2024 22:28 UTC](https://discourse.nodered.org/t/grafana-dashboard-with-two-panels-and-different-time-ranges/84704/2 "2024-01-18T22:28:59Z")

</div>

![Bildschirmfoto 2024-01-18 um 23.12.56](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/f/df9c08f7d0b217671614cc7f2538cc09278c31c7.png)

 ![Bildschirmfoto 2024-01-18 um 23.13.33](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/5/95bab1bff0e0bc5ea2c855db680f5bcf2cdf4157.png)

---

<div class="post-metadata">

**Author:** ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)\
**Post date:** [19 January 2024 01:54 UTC](https://discourse.nodered.org/t/grafana-dashboard-with-two-panels-and-different-time-ranges/84704/3 "2024-01-19T01:54:45Z")

</div>

I'm not quite sure what part of this question relates to node red ?

However you can set a **relative** time range in the query options. So set each query as required.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/d/4dd9808b74f76f34bae2988a68da7a9daf12e0f1.png)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [19 January 2024 08:56 UTC](https://discourse.nodered.org/t/grafana-dashboard-with-two-panels-and-different-time-ranges/84704/4 "2024-01-19T08:56:53Z")

</div>

Make sure that when you save the dashboard that you select the tickbox to tell it to save the time range.

---

<div class="post-metadata">

**Author:** ![wwyyrrmm](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/wwyyrrmm/32/75728_2.png) [@wwyyrrmm](https://discourse.nodered.org/u/wwyyrrmm)\
**Post date:** [19 January 2024 10:05 UTC](https://discourse.nodered.org/t/grafana-dashboard-with-two-panels-and-different-time-ranges/84704/5 "2024-01-19T10:05:39Z")

</div>

thx, I will try it in the evening ;o)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [19 March 2024 10:05 UTC](https://discourse.nodered.org/t/grafana-dashboard-with-two-panels-and-different-time-ranges/84704/6 "2024-03-19T10:05:49Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
