Config from query result threshold in repeat panel

Hello there, I am using Grafana 10.2.2 and trying to set up a Bar Gauge panel with Thresholds configured from query .
I am using Prometheus datasource.
I have 2 queries : first to display daily cost and the second to get the average daily cost . I would like to set up a dynamic threshold with avegarge daily cost.
It is working for the first panel but when I repeat it, the threshold is not available on the others.
I hope I’ve been clear enough.

I found how to fix my problem. I set a fixed value in the legend name.