How to get the latest timestamp of value change (0>1 or 1>0)

Hi,

I try to get the following information out of my measurement:

when was the last value change from “0” to “1” and when was the last value change from “1” to “0”.
I study already the flux help, but I haven’t found a solution for that kind of query.
Simply using min() and max() will not work because there are equal values in-between. So I have to search for the value differences.

Any Idea how to solve this?

thanks!

Hello @dewenni,
Have you tried:

?
Thanks

1 Like