Average value of an historical tag

Hello,all.
Is there any math function to calculate the average value of Tag A through last 24 hour?
Any insight would be appreciated! Thanks!

Add the tag to a transaction group to log the tag value in a database table. This way you can set how often you want to log the tag, ie every second or every ten seconds.

Also you could turn on the tag history function which can be configured in different manners, but all which logs the tag value in a database table.

Once you do this, just set up a query tag for example:

Select avg(tagvalue) 
From table
Where tstamp between time1 and time2

https://docs.inductiveautomation.com/display/DOC79/system.tag.queryTagCalculations

2 Likes