Repeating panels in Grafana

I am trying to get repeating panels for the sensors that report temperature.

The InfluxDB query is:
SELECT last("value") FROM "autogen"."temperature" WHERE ("deviceName" =~ /^$devices$/) AND $timeFilter GROUP BY time($__interval) fill(previous)
The variable is declared as:
Since it seems it’s impossible to hide panels which no data, I was thinking maybe there is a way for me to set up the variable to only have temperature values but I am not sure how to go about it. Any idea? Or maybe tags that have an attribute of temperature?

Is it an option to not use it as repeating panel, but have all data in 1 query?

That’s intriguing, thanks for the thought, I’ll try that. I imagine that you’re implying that the Panel can be displayed for each row of a query result, ?

Yes indeed, that’s what I was trying to refer to…

Doing that, you would only have the items that have actual data…

That worked, genius! Thanks