# Assign dashboard query result to variable

**URL:** <https://community.grafana.com/t/assign-dashboard-query-result-to-variable/59540>\
**Category:** Configuration\
**Tags:** query-help\
**Created:** [January 24, 2022, 8:38pm UTC](https://community.grafana.com/t/assign-dashboard-query-result-to-variable/59540 "2022-01-24T20:38:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![viacheslavzakhvatov](https://avatars.discourse-cdn.com/v4/letter/v/958977/32.png) [@viacheslavzakhvatov](https://community.grafana.com/u/viacheslavzakhvatov)\
**Post date:** [January 24, 2022, 8:38pm UTC](https://community.grafana.com/t/assign-dashboard-query-result-to-variable/59540/1 "2022-01-24T20:38:00Z")

</div>

Hello

In Dashboard settings\>Variables\>Edit i can create a variable referencing a dashboard i already have.

what is the syntax of querying the dashboard?

ive read this (awaited to find syntax there)

> **[Add variables](https://grafana.com/docs/grafana/latest/variables/variable-types/)**
>
> Variables types Grafana uses several types of variables.
> Variable type Description Query Query-generated list of values such as metric names, server …

,

> **[Share query results](https://grafana.com/docs/grafana/latest/panels/share-query-results/)**
>
> Share query results between panels Grafana let you use the query result from one panel for any other panel in the dashboard. Sharing query results across …

and all other places in documentation about dashboards as data sources and queries.

thanks in advance

---

<div class="post-metadata">

**Author:** ![viacheslavzakhvatov](https://avatars.discourse-cdn.com/v4/letter/v/958977/32.png) [@viacheslavzakhvatov](https://community.grafana.com/u/viacheslavzakhvatov)\
**Post date:** [January 25, 2022, 3:32pm UTC](https://community.grafana.com/t/assign-dashboard-query-result-to-variable/59540/2 "2022-01-25T15:32:16Z")

</div>

so… my admin updated grafana to latest 8.\*  
and the dashboard word from that dropdown list for variables completely disappeared.

still i can query grafana as datasource - question is how?
