Performant way for conditional filter

This post helped me out:

Next Problem to solve: Grafana is only storing 1k values in their variables.

This topic here could be closed