Can I hide the panel based on a variable value on grafana Dashboard?

I want to hide the panel on grafana dashboard, if user selects a certain variable value.

suppose ex: I have country , city variable dropdowns as prompts.
I Also have Country , city panels.
I Don’t want to see the City panel when Country Variable is selected and city is not selected. and vice -versa

Is is possible in Grafana v9.4.7

You can add the “Row” to group the panels and you can hide those by clicking on expand option.

1 Like

There’s a Github Issue where many people are after the same thing - see Hide empty / no data panels · Issue #4470 · grafana/grafana · GitHub

There’s no direct fix yet unfortunately, but there is something of a workaround/alternative, which I have described here:

I’d suggest starting from HiddenWhenNoDataBehaviour(), and updating it from a “no data” case to the case you are concerned with. I realise many people won’t want to or feel equipped to develop a React app, and deploy it into their Grafana instance however - sorry if this isn’t for you.