Strange behaviour with variable use

Hi everyone, I’m getting strange behaviour for a particular panel in a dashboard. I’m using a variable for each panel. It’s grabbing from an Influxdb. It’s an ultrasonic sensor on a water tank.
Any assistance would be greatly appreciated.


As you can see, the level % is giving some interesting result with the jagged line, yet the graphs below it (of which the water height is directly proportinal to the Level% looks fine …the table in the next screenshot shows the data, which is as I would expect. There is rogue data being added to the graph approx 3 min before every good data…

Hope this makes sense, here is a copy of the query…

Actually I think I’m sorted, needed more selection criteria for each panel query.