# \#dashboard-variables

**URL:** https://community.grafana.com/tag/dashboard-variables/222.md

[Latest](https://community.grafana.com/latest.md) · [Categories](https://community.grafana.com/categories.md) · [Tags](https://community.grafana.com/tags.md)

---

## [Testing globalDashboardVariables](https://community.grafana.com/t/testing-globaldashboardvariables/164300)

<div class="topic-metadata">

**Author:** [@stephenking](https://community.grafana.com/u/stephenking)\
**Replies:** 10\
**Last updated:** [October 22, 2026, 2:14pm UTC](https://community.grafana.com/t/testing-globaldashboardvariables/164300 "2026-10-22T14:14:37Z")

</div>

Hi, I know it wasn’t mentioned in the Grafana 13.2 release notes, but I noticed that there were new features added behind the globalDashboardVariables feature flag, which allows to define dashboard variables on global /…

---

## [Single variable for different datasources](https://community.grafana.com/t/single-variable-for-different-datasources/164534)

<div class="topic-metadata">

**Author:** [@soumyahimadri](https://community.grafana.com/u/soumyahimadri)\
**Replies:** 2\
**Last updated:** [October 19, 2026, 12:19pm UTC](https://community.grafana.com/t/single-variable-for-different-datasources/164534 "2026-10-19T12:19:53Z")

</div>

I have multiple filters like filters like namespace, sqlwatch, elasticsearch, prometheus enabled for different panels in a single dashboard. I want to get all results from different dashboard from one single filter. Is i…

---

## [Global variable in dasboard](https://community.grafana.com/t/global-variable-in-dasboard/78778)

<div class="topic-metadata">

**Author:** [@machneit](https://community.grafana.com/u/machneit)\
**Replies:** 9\
**Last updated:** [October 16, 2026, 8:38pm UTC](https://community.grafana.com/t/global-variable-in-dasboard/78778 "2026-10-16T20:38:10Z")

</div>

Hi! Is it possible to create a numeric global variable to set dashboard thresholds? E.g. Alex

---

## [Can I define global variables in Grafana?](https://community.grafana.com/t/can-i-define-global-variables-in-grafana/83290)

<div class="topic-metadata">

**Author:** [@bigsol](https://community.grafana.com/u/bigsol)\
**Replies:** 2\
**Last updated:** [October 16, 2026, 8:34pm UTC](https://community.grafana.com/t/can-i-define-global-variables-in-grafana/83290 "2026-10-16T20:34:08Z")

</div>

Can I define global variables in Grafana? Many thanks

---

## [Is is possible to define variable for the instance and use it across multiple dashboards?](https://community.grafana.com/t/is-is-possible-to-define-variable-for-the-instance-and-use-it-across-multiple-dashboards/80067)

<div class="topic-metadata">

**Author:** [@mayankraja](https://community.grafana.com/u/mayankraja)\
**Replies:** 3\
**Last updated:** [October 16, 2026, 8:33pm UTC](https://community.grafana.com/t/is-is-possible-to-define-variable-for-the-instance-and-use-it-across-multiple-dashboards/80067 "2026-10-16T20:33:26Z")

</div>

What Grafana version and what operating system are you using? \* \[Cloud Pro (Licensed) v9.3.2-67a213dc85 (67a213dc85) What are you trying to achieve? Unfortunately we are not fully connected and automated, so some in…

---

## [Grafana Dashboard Health Status Aggregation and Cross-Dashboard Status Sharing](https://community.grafana.com/t/grafana-dashboard-health-status-aggregation-and-cross-dashboard-status-sharing/164504)

<div class="topic-metadata">

**Author:** [@yagyandatta](https://community.grafana.com/u/yagyandatta)\
**Replies:** 2\
**Last updated:** [October 5, 2026, 5:06pm UTC](https://community.grafana.com/t/grafana-dashboard-health-status-aggregation-and-cross-dashboard-status-sharing/164504 "2026-10-05T17:06:46Z")

</div>

Grafana Version and Operating System: Grafana v13.1.3 (Azure Managed Grafana) What are you trying to achieve? We are designing an application health monitoring dashboard with a multi-level drill-down approach: L1: H…

---

## [Multi value variable for timeseries](https://community.grafana.com/t/multi-value-variable-for-timeseries/164216)

<div class="topic-metadata">

**Author:** [@nikoemn](https://community.grafana.com/u/nikoemn)\
**Replies:** 11\
**Last updated:** [September 7, 2026, 11:47am UTC](https://community.grafana.com/t/multi-value-variable-for-timeseries/164216 "2026-09-07T11:47:42Z")

</div>

Hello I’m struggling to use multi-value variable and then use them in timeseries panel. I’m using Grafana 12.4.3. I have 2 variables, alias and tag\_selection, the user can select select multiple alias to get multiple t…

---

## [Using and set up Multi-value variable from Table request](https://community.grafana.com/t/using-and-set-up-multi-value-variable-from-table-request/164305)

<div class="topic-metadata">

**Author:** [@nikoemn](https://community.grafana.com/u/nikoemn)\
**Replies:** 7\
**Last updated:** [September 7, 2026, 6:59am UTC](https://community.grafana.com/t/using-and-set-up-multi-value-variable-from-table-request/164305 "2026-09-07T06:59:00Z")

</div>

Hello, I’m using Grafana 13.2.0 and a postgreSQL datasource. Since I faced a issue with my post here and as it appears it is a known issue on Grafana I’m asking a more general question to get some ideas on how to do wha…

---

## [Query variables to refresh on 'Refresh'](https://community.grafana.com/t/query-variables-to-refresh-on-refresh/163891)

<div class="topic-metadata">

**Author:** [@ewane420](https://community.grafana.com/u/ewane420)\
**Replies:** 1\
**Last updated:** [July 25, 2026, 5:23am UTC](https://community.grafana.com/t/query-variables-to-refresh-on-refresh/163891 "2026-07-25T05:23:45Z")

</div>

I have a dashboard ‘Query variable’, using an SQL query to read values from a table. The information in the table will sometimes change, and I would like the variable to change accordingly. Currently, the only options ar…

---

## [How to use dashboard variable in timeseries panel type Min/Max fields](https://community.grafana.com/t/how-to-use-dashboard-variable-in-timeseries-panel-type-min-max-fields/163369)

<div class="topic-metadata">

**Author:** [@temppmet](https://community.grafana.com/u/temppmet)\
**Replies:** 2\
**Last updated:** [June 24, 2026, 11:56am UTC](https://community.grafana.com/t/how-to-use-dashboard-variable-in-timeseries-panel-type-min-max-fields/163369 "2026-06-24T11:56:59Z")

</div>

Hi all, I’m trying to make the Y-axis Min/Max of a Time series panel controllable via a dashboard variable, so an external embedding context (an iframe with a query-string-driven var-y\_min/var-y\_max) can set the axis bo…

---

## [How to use multiple value variable in PromQL query?](https://community.grafana.com/t/how-to-use-multiple-value-variable-in-promql-query/163350)

<div class="topic-metadata">

**Author:** [@mirtobusico](https://community.grafana.com/u/mirtobusico)\
**Replies:** 1\
**Last updated:** [June 18, 2026, 7:23pm UTC](https://community.grafana.com/t/how-to-use-multiple-value-variable-in-promql-query/163350 "2026-06-18T19:23:54Z")

</div>

Hi all, I would like to use a multi value variable in a query. In a test dashboard I have a variable (group) that identifies various devices in my lan The variable shows correctly the groups from smokeping-prober a…

---

## [Adding a Server Type Filter to a Grafana System Monitoring Dashboard](https://community.grafana.com/t/adding-a-server-type-filter-to-a-grafana-system-monitoring-dashboard/163263)

<div class="topic-metadata">

**Author:** [@infofcc3](https://community.grafana.com/u/infofcc3)\
**Replies:** 0\
**Last updated:** [June 12, 2026, 12:44pm UTC](https://community.grafana.com/t/adding-a-server-type-filter-to-a-grafana-system-monitoring-dashboard/163263 "2026-06-12T12:44:21Z")

</div>

Overview As infrastructure environments grow, monitoring dozens of servers from a single dashboard can become challenging. System administrators often need to focus on a specific group of servers, such as Grafana server…

---

## [Multi-select variable cannot be deselected using × icon inside Controls menu](https://community.grafana.com/t/multi-select-variable-cannot-be-deselected-using-x-icon-inside-controls-menu/163225)

<div class="topic-metadata">

**Author:** [@MohanMarimuthu](https://community.grafana.com/u/MohanMarimuthu)\
**Replies:** 2\
**Last updated:** [June 12, 2026, 3:56am UTC](https://community.grafana.com/t/multi-select-variable-cannot-be-deselected-using-x-icon-inside-controls-menu/163225 "2026-06-12T03:56:36Z")

</div>

I have a dashboard with variables displayed inside a Controls menu. One of the variables is a multi-select variable (sensor\_channel). The selected values are displayed as tags with an × icon. Issue: Clicking the × i…

---

## [Using variables inside queries in shared dashboard](https://community.grafana.com/t/using-variables-inside-queries-in-shared-dashboard/162796)

<div class="topic-metadata">

**Author:** [@informatyk3oscar](https://community.grafana.com/u/informatyk3oscar)\
**Replies:** 3\
**Last updated:** [May 8, 2026, 8:04am UTC](https://community.grafana.com/t/using-variables-inside-queries-in-shared-dashboard/162796 "2026-05-08T08:04:50Z")

</div>

I’m using Grafana v13.0.1 on docker. I’m trying to create shared dashboard with panel using variables inside query. I’ve added variable to dashboard. Then I’ve created simple panel with postgresql query “select $var as v…

---

## [MultiPropsVariables in 12.4.2 via query](https://community.grafana.com/t/multipropsvariables-in-12-4-2-via-query/162443)

<div class="topic-metadata">

**Author:** [@dawiddebowski](https://community.grafana.com/u/dawiddebowski)\
**Replies:** 4\
**Last updated:** [April 13, 2026, 5:11am UTC](https://community.grafana.com/t/multipropsvariables-in-12-4-2-via-query/162443 "2026-04-13T05:11:11Z")

</div>

Hi, \[Grafana Community\] \[Grafana 12.4.2\] \[Infinity Plugin 3.8.0\] In multiprops variables announcement there was a mention that the variables can be created via infinity plugin. I bumped my Grafana instance to 12.4.2 an…

---

## [InfluxV3 - SQL : Query OK in InfluxDB explore but not in Grafana variable](https://community.grafana.com/t/influxv3-sql-query-ok-in-influxdb-explore-but-not-in-grafana-variable/139478)

<div class="topic-metadata">

**Author:** [@nexelecdurrmann](https://community.grafana.com/u/nexelecdurrmann)\
**Replies:** 1\
**Last updated:** [February 27, 2026, 8:07am UTC](https://community.grafana.com/t/influxv3-sql-query-ok-in-influxdb-explore-but-not-in-grafana-variable/139478 "2026-02-27T08:07:15Z")

</div>

What Grafana version and what operating system are you using? I am using Grafana v11.4.0 and InfluxDBV3 with SQL What are you trying to achieve? I am trying to display a dropdown menu displaying distincs strings s…

---

## [Date calculation with ${\_\_to📅YYYY}](https://community.grafana.com/t/date-calculation-with-toyyyy/161251)

<div class="topic-metadata">

**Author:** [@michif](https://community.grafana.com/u/michif)\
**Replies:** 1\
**Last updated:** [February 19, 2026, 11:40am UTC](https://community.grafana.com/t/date-calculation-with-toyyyy/161251 "2026-02-19T11:40:16Z")

</div>

Hi! In one of my queries (InfluxDB2, no Flux) I’m using the alias Total ${\_\_to:date:YYYY} which resuts in Total 2026 The panel, however, shows values from a year back selected by query options. Additionally the same gl…

---

## [One dashboard - several reports](https://community.grafana.com/t/one-dashboard-several-reports/161367)

<div class="topic-metadata">

**Author:** [@scribepl](https://community.grafana.com/u/scribepl)\
**Replies:** 1\
**Last updated:** [February 19, 2026, 7:09am UTC](https://community.grafana.com/t/one-dashboard-several-reports/161367 "2026-02-19T07:09:27Z")

</div>

It has a ready-made dashboard with a single variable (hostname), and it works perfectly, presenting the data I’m interested in. I can easily switch between machines by changing the hostname. I’d like to run a report usin…

---

## [Set treshold values by variable](https://community.grafana.com/t/set-treshold-values-by-variable/161736)

<div class="topic-metadata">

**Author:** [@mortensickel](https://community.grafana.com/u/mortensickel)\
**Replies:** 1\
**Last updated:** [February 18, 2026, 10:02am UTC](https://community.grafana.com/t/set-treshold-values-by-variable/161736 "2026-02-18T10:02:34Z")

</div>

I am trying to have treshold values in a time series panel change depending on another variable. Use case: I am setting up monitoring of two off grid stations that are powered by wind generators. Those two stations are …

---

## [Allow dashboard variables to work across multiple datasources](https://community.grafana.com/t/allow-dashboard-variables-to-work-across-multiple-datasources/161499)

<div class="topic-metadata">

**Author:** [@claucarregosa](https://community.grafana.com/u/claucarregosa)\
**Replies:** 3\
**Last updated:** [February 6, 2026, 12:53pm UTC](https://community.grafana.com/t/allow-dashboard-variables-to-work-across-multiple-datasources/161499 "2026-02-06T12:53:49Z")

</div>

I am trying to create a dashboard where dashboard variables can pull and combine values from multiple datasources. Currently, Grafana variables require a single datasource for query variables, which prevents me from: C…

---

## [Variables across multiple datasources](https://community.grafana.com/t/variables-across-multiple-datasources/161503)

<div class="topic-metadata">

**Author:** [@claucarregosa](https://community.grafana.com/u/claucarregosa)\
**Replies:** 1\
**Last updated:** [February 4, 2026, 5:57pm UTC](https://community.grafana.com/t/variables-across-multiple-datasources/161503 "2026-02-04T17:57:03Z")

</div>

I am trying to create a dashboard where a single variable can pull values from multiple datasources. Right now, query variables can only use one datasource, which makes it difficult to: Combine values from different d…

---

## [Assigning Dashboard Variable to Influx Bucket w/ InfluxQL](https://community.grafana.com/t/assigning-dashboard-variable-to-influx-bucket-w-influxql/161418)

<div class="topic-metadata">

**Author:** [@weepwoop](https://community.grafana.com/u/weepwoop)\
**Replies:** 1\
**Last updated:** [February 3, 2026, 5:27pm UTC](https://community.grafana.com/t/assigning-dashboard-variable-to-influx-bucket-w-influxql/161418 "2026-02-03T17:27:02Z")

</div>

Hello, Im using Grafana to view data in InfluxDB - using InfluxQL as the Grafana query language. I would like to have a grafana dashboard variable that can be used to switch between influxdb buckets. However, im not sure…

---

## [Infinity Datasource using datasource variable](https://community.grafana.com/t/infinity-datasource-using-datasource-variable/161186)

<div class="topic-metadata">

**Author:** [@kcwitch](https://community.grafana.com/u/kcwitch)\
**Replies:** 4\
**Last updated:** [January 28, 2026, 8:43am UTC](https://community.grafana.com/t/infinity-datasource-using-datasource-variable/161186 "2026-01-28T08:43:13Z")

</div>

Hi all I need some guide in using datasource variables with infinity datasource. I created 3 datasources with different url endpoints (e.g api-example-dev com/). I already created the variable but need help on how to u…

---

## [Nested variables not working after upgrading from 7.3.7 to 12.2.0](https://community.grafana.com/t/nested-variables-not-working-after-upgrading-from-7-3-7-to-12-2-0/160280)

<div class="topic-metadata">

**Author:** [@yanicknoblanc](https://community.grafana.com/u/yanicknoblanc)\
**Replies:** 1\
**Last updated:** [December 17, 2025, 10:47am UTC](https://community.grafana.com/t/nested-variables-not-working-after-upgrading-from-7-3-7-to-12-2-0/160280 "2025-12-17T10:47:16Z")

</div>

Hi all My dashboard is a modification of well known ‘Node exporter Full’. What I do not understand is that it was working perfectly well with grafana 7.3.7, and does not work at all after upgrading to 12.2.0. My Dashb…

---

## [Dashboard Variables Not Refreshing When Navigating via Data Links (Panels Show Old Data Until Manual Refresh)](https://community.grafana.com/t/dashboard-variables-not-refreshing-when-navigating-via-data-links-panels-show-old-data-until-manual-refresh/159927)

<div class="topic-metadata">

**Author:** [@srm97301](https://community.grafana.com/u/srm97301)\
**Replies:** 0\
**Last updated:** [December 4, 2025, 10:21am UTC](https://community.grafana.com/t/dashboard-variables-not-refreshing-when-navigating-via-data-links-panels-show-old-data-until-manual-refresh/159927 "2025-12-04T10:21:32Z")

</div>

Hello Team, I am facing an issue with dashboard navigation in Grafana where variables passed through data links do not refresh the data in the target dashboard automatically. Issue Summary We have multiple dashboards …

---

## [Custom values in a linked variable](https://community.grafana.com/t/custom-values-in-a-linked-variable/159641)

<div class="topic-metadata">

**Author:** [@micahgould1](https://community.grafana.com/u/micahgould1)\
**Replies:** 0\
**Last updated:** [November 24, 2025, 7:47am UTC](https://community.grafana.com/t/custom-values-in-a-linked-variable/159641 "2025-11-24T07:47:07Z")

</div>

So I have 1 variable right now that is a text box, but I want to have a unique value set when it is empty. Also, because of how I am specifically using it, it needs to be in a separate variable. I am using these variable…

---

## [How do I extract a substring from a label'value using Grafana variable](https://community.grafana.com/t/how-do-i-extract-a-substring-from-a-labelvalue-using-grafana-variable/120830)

<div class="topic-metadata">

**Author:** [@edtshuma](https://community.grafana.com/u/edtshuma)\
**Replies:** 1\
**Last updated:** [November 19, 2025, 3:27pm UTC](https://community.grafana.com/t/how-do-i-extract-a-substring-from-a-labelvalue-using-grafana-variable/120830 "2025-11-19T15:27:28Z")

</div>

I am trying to setup a Grafana dashboard variable to filter out a substring from a label’s value. For the regex I have entered it as below; /^.\*managed-(.\*?)\_.\*$/ I cant seem to find the most appropriate regex, I keep …

---

## [Moving a multi-value variable from one dashboard to another in Data links](https://community.grafana.com/t/moving-a-multi-value-variable-from-one-dashboard-to-another-in-data-links/159471)

<div class="topic-metadata">

**Author:** [@ssssmatik](https://community.grafana.com/u/ssssmatik)\
**Replies:** 0\
**Last updated:** [November 17, 2025, 10:40pm UTC](https://community.grafana.com/t/moving-a-multi-value-variable-from-one-dashboard-to-another-in-data-links/159471 "2025-11-17T22:40:23Z")

</div>

Hi everyone I’m having trouble moving a multi-value variable in Data-link. I’ve tried different ways of moving it, but none of them transfer the data the way I need them to. For example &var-Platform=${Platform:csv} …

---

## [Ad hoc filters variable appended to stream label, not to the label filtering section](https://community.grafana.com/t/ad-hoc-filters-variable-appended-to-stream-label-not-to-the-label-filtering-section/158997)

<div class="topic-metadata">

**Author:** [@gfan8w](https://community.grafana.com/u/gfan8w)\
**Replies:** 1\
**Last updated:** [November 14, 2025, 7:12am UTC](https://community.grafana.com/t/ad-hoc-filters-variable-appended-to-stream-label-not-to-the-label-filtering-section/158997 "2025-11-14T07:12:50Z")

</div>

how the grafana ad hoc filters variable works? I use data source loki, the ad hoc filters variable generate the final expression is: {service\_name="agent-example-app", trace\_id="705700ec6b2cd0edbf679859ee76bb25"} |= \`…

---

## [Filter on Embedded item](https://community.grafana.com/t/filter-on-embedded-item/75100)

<div class="topic-metadata">

**Author:** [@vikasbhadran](https://community.grafana.com/u/vikasbhadran)\
**Replies:** 6\
**Last updated:** [November 4, 2025, 7:03am UTC](https://community.grafana.com/t/filter-on-embedded-item/75100 "2025-11-04T07:03:12Z")

</div>

Hi All, I have embedded the Grafana dashboard into my website and it’s working fine but my issue is, it is not showing the filters on my website. I will add a screenshot so for easy understanding. See below image, these…

[Next page](https://community.grafana.com/tag/dashboard-variables/222.md?match_all_tags=true&page=1&tags%5B%5D=dashboard-variables)
