Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Elapsed time from a single column defined by state

Hi all,

 

I'm having an issue creating a column/measure that tells me the elapsed time during 2 different data states. 

I have a single column with date/time, and another with a detected state: "MOTION_DETECTED" and "NO_MOTION_DETECTED". 

 

Ideally, i'd like a column/measure that tells me the elapsed minutes from a motion has been detected, until it returns that no motion has been detected. Similarly, i would like a column/measure that tells me the elapsed time from no detected motion, until motion is detected. 

 

Any tips? Data sample can be seen below: 

 



2 Replies