average_x
Calculates the average of values in a column.
Syntax
average_x(<table>, <expr>)
| Parameter | Type | Description |
|---|---|---|
| table | Table | The table to operate on. |
| expr | any | The expression to evaluate. |
Return values
Number
Usage
Calculates the average of order total prices.
average_x(orders.total_price)