# Repeat panels with key value variables

**URL:** <https://community.grafana.com/t/repeat-panels-with-key-value-variables/135735>\
**Category:** Grafana\
**Tags:** dashboard-variables, templating\
**Created:** [November 5, 2024, 3:41pm UTC](https://community.grafana.com/t/repeat-panels-with-key-value-variables/135735 "2024-11-05T15:41:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![boopathi](https://avatars.discourse-cdn.com/v4/letter/b/db5fbb/32.png) [@boopathi](https://community.grafana.com/u/boopathi)\
**Post date:** [November 5, 2024, 3:41pm UTC](https://community.grafana.com/t/repeat-panels-with-key-value-variables/135735/1 "2024-11-05T15:41:38Z")

</div>

When defining variables and repeating panels for those variables, it only works when used in simple form - comma separated values. When the variables are defined as `key : value` pairs, the repeat option does not work - i.e. the panels are not repeated.

Steps to reproduce :

1. Create a new custom variable “var1” - set the value to be key value pair. e.g. `a : foo, b : bar, c : baz`
2. Create a new panel and select repeat for variable “var1”.
3. The repeat function does not work - even after saving the dashboard and refreshing.
4. If we change the variable values to be `a, b, c` and then refresh, the repeat works - panels for b and c are created.

Grafana Version: Grafana v9.5.6
