Hourly Average that starts each hour as an AF attribute

Discussion created by Kapil.Rakh on Mar 19, 2014
Latest reply on Jul 2, 2014 by lpagemorin

I need to get hourly average for a tag starting from each hour. At the start of an hour, the hourly average is reset and new hourly average calculation begins every minute until the hour ends.


This can be done using PI Totalizer but I wanted to do this using AF (without creating a PI tag).


My approach was to use the "Time Range" value retrieval method.




And the Relative time will be = -1x  where x is the number of minutes at the time client request the value. In most case, it will be the current minute (i.e. client requesting the average at current time).


Off course x will change every minute so will be the average.


How to achieve this in AF?