# Repeat Query based on Variable

**URL:** <https://community.grafana.com/t/repeat-query-based-on-variable/56859>\
**Category:** Stat Panel\
**Tags:** templating\
**Created:** [November 29, 2021, 5:54am UTC](https://community.grafana.com/t/repeat-query-based-on-variable/56859 "2021-11-29T05:54:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![prasannasai08](https://avatars.discourse-cdn.com/v4/letter/p/eb9ed0/32.png) [@prasannasai08](https://community.grafana.com/u/prasannasai08)\
**Post date:** [November 29, 2021, 5:54am UTC](https://community.grafana.com/t/repeat-query-based-on-variable/56859/1 "2021-11-29T05:54:58Z")

</div>

In a panel, I would like to repeat a query based on a multi valued variable. Instead of repeating the panel for each value, I want to repeat the query in the same panel for all the values of the variable.

Is there a way to implement this?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![tyricec](https://avatars.discourse-cdn.com/v4/letter/t/a88e4f/32.png) [@tyricec](https://community.grafana.com/u/tyricec)\
**Post date:** [April 26, 2022, 11:53am UTC](https://community.grafana.com/t/repeat-query-based-on-variable/56859/2 "2022-04-26T11:53:55Z")

</div>

I’m also interested in this.
