Calculates the average value of all the records that match the filter.
Basic usage:
{{ record.avg }}
Usage with parameters:
{{ record.avg(Table, Value Field, Filter) }}
Parameters:
Table
(optional) – The name of the Table to count records from.Value Field
(optional) – The field to read the value from.Filter
(optional) – Optional filter, ie. fieldname=some value.
Example:
{{ record.avg("products","price") }}
Leave a Reply
You must be logged in to post a comment.