Is it possible to show/hide query based on template variable?

I am using grafana with influxdb, and I want to show/hide queries in a graph panel based on user’s choice from a dropdown menu, which is a template variable with custom values:
image

I tried something like this:

but it didn’t work, I suspect it’s because the variable in this case is not part of tags in influxdb.

Is there a better way to hide queries based on custom variable?

Thanks

no this is not currently possible.

@torkel Any suggestions though on a better way to hide queries based on custom variable?
Thanks for your response