Calculate RMSE between two variables in grafana


I have two variables from two different measurements in influxdb visualized in one panel in grafana. I’m wondering if there’s a way to directly get in grafana the value of RMSE= sqrt((Variable2 - Variable1)^2) based on the chosen time frame.

You might be able to use transformations, @sinakhoul