How to create a dynamic panel based on variable selection?

Hey everyone,

I’m trying to build a dashboard where the panel content updates dynamically based on the variable a user selects. I’ve already set up the variables in the dashboard settings, but I can’t seem to get the panels to update properly when the selection changes.

Do I need to use a specific plugin or is there a built-in method in Grafana for this?

Thanks in advance!

Built-in method in grafana
follow the steps
Step 1: Create a variable


Step 2: Create panel and select table visualization and select your database where table present in my case use postgresql and then write query mention in screenshot.