AnsweredAssumed Answered

How to calculate a predictive totalization with a PI Analysis

Question asked by Nicolas.Isambourg on Aug 22, 2017
Latest reply on Aug 23, 2017 by Nicolas.Isambourg

Dear Forum Members,


I need to calculate in PI AF what the totalization will be at the end of the current shift.

A shift lasts 8 hours, from 6:00 to 14:00, from 14:00 to 22:00 and from 22:00 to 06:00

I created a PI Analysis with the following equations:


Tot_Of_The_Current_Shift                           TagTot('Debit','Current Shift StartTime','*')

PredictiveTot_Of_The_Current_Shift_1        8 * 3600 * Tot_Of_The_Current_Shift   / ('*' - 'Current Shift StartTime')

PredictiveTot_Of_The_Current_Shift_2       TagTot('Debit','Current Shift StartTime','Current Shift EndTime')


So, I found 2 ways to calculate the predictive totalization.

Are these equations correct ?

Can I define a future timestamp in the TagTot function ?



Best regards,