Hi PI Community Members, Looking for your support to understand how to configure calcuation to add a syntax expression only if the previous value is more than the current value.

Looking to know how to configure the below:

expression to configure 24 hrs totaliser with equation (MA+B) value at time T is x > expression (MA+B) value at previous time (lets say 1 hour previous (T-1 hr)) is (X+1) then add expression for the day and provide result,

 

Thanks for the support