AnsweredAssumed Answered

Detecting Increasing Values Using Analytics

Question asked by Steve Boyko Champion on Jan 7, 2016
Latest reply on Feb 23, 2016 by cvillanua

Is there a simple way to detect if a value is increasing over a period using PI Analytics?


The obvious thing to do is something like

if TagVal('tag', '*-5m')<'tag' then increasing else not-increasing


However that is not going to detect any ups or downs in the 5 minute period.


One could also do:

if TagMin('tag', '*-5m', '*') > TagVal('tag', '*-5m', '*') then it-increased else it-didn't-increase


but that doesn't detect a trend of increasing values either.


If the tag updates regularly then you could compare PrevEvents().


Any suggestions, squareheads?