I'm trying to write a performance equation that outputs the total time in a year that multiple conditions are true.

The conditions are in the form:

A<'Tag1'<B

'Tag2'>C

'Tag3'="off"

I've tried using if/then statements mixed with the time function but i can't seem to get the syntax right. I was trying to output this as a PI calc, but getting it to output in Excel PI Datalink would also be an option.

Thanks.

Does the Total PE function give you what you need? Can you describe the logic in more detail or what you have so far for the PE expression?