Hello,
I need help on getting the total count of a particular state of a digital tag. For example, I have a digital tag called ALARMTAG with two possible states, OK or ALARM. I would like to get the count of times the point went into alarm over a set time period.
The equation below is what I am using but the value returned shows higher that the state changes I am seeing for the same point on a ProcessBook trend.
=PIAdvCalcExpVal("'ALARMTAG' = ""ALARM""",$M$3,$M$7,"total","event-weighted","compressed","10m", 0, 1, 0,"piserver")
The $M$3 and $M$7 cells contain the start and end date/times.
I see 3 transitions to "ALARM" in processbook but the above formula returns 7 for the same time period.
Any help appreciated!
Thanks,
Mike