# Not possible to pass date range information from one dashboard to another one

**URL:** <https://community.grafana.com/t/not-possible-to-pass-date-range-information-from-one-dashboard-to-another-one/10348>\
**Category:** Grafana\
**Created:** [September 11, 2018, 2:02pm UTC](https://community.grafana.com/t/not-possible-to-pass-date-range-information-from-one-dashboard-to-another-one/10348 "2018-09-11T14:02:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![aliok](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@aliok](https://community.grafana.com/u/aliok)\
**Post date:** [September 11, 2018, 2:02pm UTC](https://community.grafana.com/t/not-possible-to-pass-date-range-information-from-one-dashboard-to-another-one/10348/1 "2018-09-11T14:02:34Z")

</div>

I have 2 dashboards: overview and detail.

The overview dashboard shows a table that renders links per row to the second dashboard. I use `$__cell` to get the value of the cell and use it in the link template like this:  
`./d/dashboard2/dashboard2/?var-clientId=$__cell`

Second dashboard has variables defined and reads the URL params passed by the link to filter some data.

This all works.

But the time range selection is gone when the link is clicked and the 2nd dashboard is opened. I couldn’t find any way of passing this.

I know dashboards can receive `from` and `to` params like this: `from=1536315119109&to=1536318719109` and the date range is set. But how can I render the link with that?

Note that, this is not about the “Drilldown / detail link” feature defined on the component level. This is table row level.

Environment:  
Grafana 5.0.0, Postgres data source, official Grafana table component

---

<div class="post-metadata">

**Author:** ![jacqueweddle](https://avatars.discourse-cdn.com/v4/letter/j/3be4f8/32.png) [@jacqueweddle](https://community.grafana.com/u/jacqueweddle)\
**Post date:** [November 13, 2018, 11:41pm UTC](https://community.grafana.com/t/not-possible-to-pass-date-range-information-from-one-dashboard-to-another-one/10348/2 "2018-11-13T23:41:17Z")

</div>

I am facing the same issue. Was a solution a provided?

---

<div class="post-metadata">

**Author:** ![aliok](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@aliok](https://community.grafana.com/u/aliok)\
**Post date:** [November 14, 2018, 6:27am UTC](https://community.grafana.com/t/not-possible-to-pass-date-range-information-from-one-dashboard-to-another-one/10348/3 "2018-11-14T06:27:32Z")

</div>

No I couldn’t solve this issue.  
I told my business team to set the date range again 🙂

---

<div class="post-metadata">

**Author:** ![jacqueweddle](https://avatars.discourse-cdn.com/v4/letter/j/3be4f8/32.png) [@jacqueweddle](https://community.grafana.com/u/jacqueweddle)\
**Post date:** [November 14, 2018, 7:01pm UTC](https://community.grafana.com/t/not-possible-to-pass-date-range-information-from-one-dashboard-to-another-one/10348/4 "2018-11-14T19:01:00Z")

</div>

I also want to pass the current time range of one dashboard to another dashboard via the column style link.

Is this possible?

---

<div class="post-metadata">

**Author:** ![aliok](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@aliok](https://community.grafana.com/u/aliok)\
**Post date:** [November 15, 2018, 7:26am UTC](https://community.grafana.com/t/not-possible-to-pass-date-range-information-from-one-dashboard-to-another-one/10348/5 "2018-11-15T07:26:30Z")

</div>

> [@jacqueweddle](#):
>
> I also want to pass the current time range of one dashboard to another dashboard via the column style link.

Sorry couldn’t understand the difference to my original question, which is not possible.

---

<div class="post-metadata">

**Author:** ![alexandrefrp](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@alexandrefrp](https://community.grafana.com/u/alexandrefrp)\
**Post date:** [February 7, 2019, 7:53pm UTC](https://community.grafana.com/t/not-possible-to-pass-date-range-information-from-one-dashboard-to-another-one/10348/6 "2019-02-07T19:53:11Z")

</div>

If you use a query, you can pass the values ​​$ \_\_ timeFrom () AND $ \_\_ timeTo () as columns in SELECT, and in the column style, put it as the hidden type and use the column link parameter {\_\_cell\_2} as an example.

Look:

SELECT [FILA\_URA], count(\*) AS QTDE, REPLACE(CONVERT(VARCHAR(10), \_\_timeFrom(), 120),'-','') AS dt\_ini, REPLACE(CONVERT(VARCHAR(10), \_\_timeTo(), 120),’-’,’’) AS dt\_fim  
FROM YOUR\_TABLE  
WHERE DATA\_HORA BETWEEN \_\_timeFrom() AND \_\_timeTo()

Link:  
./d/e4Rlg6umz/filas-ura-canal?orgId=1&var-fila\_ura=${\_\_cell}&var-canal=canal&from={\_\_cell\_2}&to=${\_\_cell\_3}

With date and time use in SELECT:  
REPLACE(REPLACE(REPLACE(CONVERT(VARCHAR(19), \_\_timeFrom(), 120),'-',''),'T',' '),':','') AS dt\_ini, REPLACE(REPLACE(REPLACE(CONVERT(VARCHAR(19), \_\_timeTo(), 120),’-’,’’),‘T’,’ ‘),’:’,’’) AS dt\_fim
