Grafana v12.3.2: Stats panels inside repeated Rows return no data

I have a dashboard variable $datasource of the type ‘data source’.

Inside the ‘original’ Row (i.e. the one that will be repeated) i have a single Stats panel and it uses the $datasource variable as the data source:

Inside Row options i configure repeat based on $datasource variable:

The Rows get repeated alright - each row for each datasource.

But only the panel inside the ‘original’ row shows meaningful data - all the rest are showing zeros:

I inspected the request and response date of some of the repeated Stats panels, and all of them appear to query the correct data source. For example, the ‘brazilsouth’ panel which shows 0 in the above printscreen, is querying the ‘brazilsouth’ data source, just as i intend:

Why is that?

EDIT: exactly tha same thing happens if instead of Row i repeat Panel itself

EDIT 2: OK, now i actually see the root cause of this - for the repeated panels the $deployment dashboard variable resolves into the values that belong to the original (seed) panel. The $deployment is a variable of type Query and refers to $datasource variable as it’s datasource. When the dashboard is saved, some default values for variables has to be saved and the values of $deployment happen to be chained to the first value of $datasource . So i need to somehow unchain them

1 Like

Break the dependency:
Do NOT make $deployment depend on $datasource
or
Remove $deployment and use direct query filters instead