Filter out 0 in results in flux

I have some data that has some random erronious values I’d like to filter out. The source of the data sends the anomolies and isn’t going to change anytime soon so I’m hoping to filter the result.

Basically, there’s a value field that has numbers usually in the 1,000 to 100,000,000,000 range. Sometimes I get a 0 come in that is invalid.

I want a ‘where _value not 0’ filter but I can’t figure out how to write this.

This is just for graphing and the stray numbers blow up the graph scales.

Thanks.

Hi @Dan_Denson

Maybe this?

from(bucket: "your-bucket")
  |> range(start: -1h)
  |> filter(fn: (r) => r._value != 0.0)
and then the rest of your filters....

1 Like

yeah, I eventually found that. I was trying to overcomplicate things.