Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

Count consecutives based on an Criteria

Hello, i would like to count the number of Events that are out of especificacion (IN = 0, OUT = 1), based on time and criteria,

 

For example My variable has criteria for every 3 points out, should be an anomaly, but if is for example 10 consecuite points out, it should also count as 1 anomaly, 

 

VARIABLE

FECHAHORA IHORA F IN = 1, OUT = 0CRITERIA
1/02/202100:0008:002.0903
1/02/202108:0016:003.3303
1/02/202116:0000:002.1303
2/02/202100:0008:004.3413
2/02/202108:0016:003.2903
2/02/202116:0000:008.8113
3/02/202100:0008:009.3713
3/02/202108:0016:005.3713