Panel Time switch

Hello Community,
I have a quick question…
Can I create a button switching between panels in the same dashboard?
What I have is (check the pic) visualization for different times with exactly the same graph. I want to add somewhere near to this panel a switch 1d,7d,14d,30d, and every time I press one of this timeframe to change the panel.
Why is that in need? It just saved me a place in the dashboard.

Thank you!

Hi @malinpetkov

If your query for those panels is the same, and you are only adjusting the time span, then you should be able to accomplish this using template variables.

Here are the docs on template variables. And here is a list of good examples on that use template variables. You can inspect each dashboard to see just how the variables are constructed.