Add variable by panel

I have several panels on my dashboard and I put a dynamic variable with thousands of values and this value is applied to the whole panel.

I could have a dynamic variable that only applies to the panel and not the dashboard so I can compare panels with different values.

This is a blocking point, I would like to know if it is possible to do it on grafana, and how.
Thanks