# Need template variable to store result of a query to be used to feed all the panels

**URL:** <https://community.grafana.com/t/need-template-variable-to-store-result-of-a-query-to-be-used-to-feed-all-the-panels/12836>\
**Category:** Grafana Plugin Development\
**Created:** [December 13, 2018, 1:53pm UTC](https://community.grafana.com/t/need-template-variable-to-store-result-of-a-query-to-be-used-to-feed-all-the-panels/12836 "2018-12-13T13:53:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fredduwez](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/fredduwez/32/3137_2.png) [@fredduwez](https://community.grafana.com/u/fredduwez)\
**Post date:** [December 13, 2018, 1:53pm UTC](https://community.grafana.com/t/need-template-variable-to-store-result-of-a-query-to-be-used-to-feed-all-the-panels/12836/1 "2018-12-13T13:53:20Z")

</div>

Hi,

I like a lot the Template Variables feature and I would like to use it to get all datas for my panels in a single query (I can do that with Warp10) and store it into a hidden $data variable. But it seems impossible to achieve yet because the result of the query is processed to create a list of result to be displayed.

1. Am I wrong and is there already a way to avoid the processing of the result?
2. If not, where can I submit this feature request?

Thx in advance.

---

<div class="post-metadata">

**Author:** ![torkel](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/torkel/32/20_2.png) [@torkel](https://community.grafana.com/u/torkel)\
**Post date:** [December 14, 2018, 7:20pm UTC](https://community.grafana.com/t/need-template-variable-to-store-result-of-a-query-to-be-used-to-feed-all-the-panels/12836/2 "2018-12-14T19:20:15Z")

</div>

Not sure what your trying to do.

Template variables are for selecting values by the user to create dynamic dashboards. Not for storing hidden data.

---

<div class="post-metadata">

**Author:** ![fredduwez](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/fredduwez/32/3137_2.png) [@fredduwez](https://community.grafana.com/u/fredduwez)\
**Post date:** [December 14, 2018, 9:24pm UTC](https://community.grafana.com/t/need-template-variable-to-store-result-of-a-query-to-be-used-to-feed-all-the-panels/12836/3 "2018-12-14T21:24:19Z")

</div>

I have complex dashboards with same (big) data requested by several panels, including table panels aggregating many metrics. This is not a typical system monitoring use case. So, yes, I need a variable acting like a cache system, similar to template variables (using them), to avoid repeating requests. With Warp10, I can retrieve an arbitrary data structure.

If Grafana would add the option to not post-process the query result, it could be used to do that.

Another use case would be to store a shared Warp10 filter and use it in all panels.
