Repeating panels for different variables and different queries?

Hi, I’m trying to use the repeat panel function to create around 30 panels for different measurements from indluxdb2. I have been able to show the same panel for different measurements by defining a variable and using it to change the query. What i haven’t figured out is how to modify the thresholds since each of the measurements has a different min/target/max thresholds.
I thought maybe using some sort of nested variable or an array but I’m struggling.
I hope someone can shed some light on how to accomplish this. Thank you!