I have the value for this - tagmax('abcd','01-Jan-19','*'), but how do I get the date of the Max Value?

I have the value for this - tagmax('abcd','01-Jan-19','*'), but how do I get the date of the Max Value?

I tried that exact expression and it fails....

There was a problem with the performance equation. Error from server:

**PI PE syntax error in Expression. [-12300] Performance Equation error**Yes, as I mentioned it will work only in PI AF Analysis. As Javin Spann suggested you need to use the FindEq function for Performance Equation.

Regards,

Vasanth.

- 1 person found this helpful
Hi Bradley,

You could pass the value returned from the TagMax function to a FindEq function. Something like:

FindEq('abcd','01-Jan-19','*',TagMax('abcd','01-Jan-19','*'))

That will return the timestamp closest to the starttime, within the given range, for which the point was equal to the given value.Also, have you seen the AF Analysis product?

OSIsoft: How to Setup Expression Analyses with PI AF [PI AF 2014- v2.6.0.5843] - YouTubePlease let me know if you have any questions about this.

Thanks,

Javin

Hi Bradley,

You could pass the value returned from the TagMax function to a FindEq function. Something like:

FindEq('abcd','01-Jan-19','*',TagMax('abcd','01-Jan-19','*'))

That will return the timestamp closest to the starttime, within the given range, for which the point was equal to the given value.

Also, have you seen the AF Analysis product?

OSIsoft: How to Setup Expression Analyses with PI AF [PI AF 2014- v2.6.0.5843] - YouTube

Please let me know if you have any questions about this.

Thanks,

Javin