AnsweredAssumed Answered

Recordvalues and Avg() function

Question asked by Charles-Emmanuel on Feb 20, 2020
Latest reply on Feb 21, 2020 by Dan Fishman

I need to program an average calculated on 5 min timeframe data values for each tag. (30 time)  

I call a tag on the record value, then call it in an average or there is a way to call a variable directly ? 


The way i saw it i need to to do in PI AF 


Variable 1  recordvalue('att1','*-5min','*')  result [1, 2 ,3 , 5, 7, 9]

Variable 2 AVG(variable 1)  as per note in HElp guide (avg topic ) 


Is there another way to do that as i have 30 tags to do like that ?