I am trying to come up with a PI equation in Analysis services that will look at the Status of a Compressor then the load value to alarm if the compressor status is Loaded and the Load doesn't increase. Having a hard time figuring out what functions to use together to get the results I'm looking for.

Thanks in advance for your input,

Phoebe

Hi Phoebe

You can try below expression

If CompressorStatus=“Loaded” and (PrevVal(“LoadTag”,”*”)=PrevVal(“LoadTag”,PrevEvent(“CompressorStatus“,PrevEvent(“CompressorStatus”,”*”))))

Then Alarm

Else NoOutput()

Thanks

Lal Babu