Hide row or panel if there is no data

Hi I would like to know if it’s possible hide a row (where inside there are some panels) or if there is no data on a query or variable value.
Anyway it’s important for me that “some elements” disappear.

welcome to the :grafana: forum, @alencappelletti

I’m not sure this is possible but I’d love to be wrong. BTW what is the datasource?

It’s prometheus data source, for example I do a loop on a variabile… but if this empty I would like that my row and all the elements inside disaperar… I don’t like an empty row with all elements with no data .
Thanks Alen, Italy

I solved using a second variable. In practice, by joining two conditions in a single expression in a query, I had the result with only the active elements and NEVER null or empty.

No way to do it with any panel either or advanced functionality… maybe you could with Javascript and Dynamic Text Panel… checking for presence of an element… but simpler my solution.

ALEN