Skip to content

Decimal Average

Steve Schafer edited this page Mar 18, 2024 · 1 revision

Use in place of the built-in AVE aggregation to avoid tiny errors that can be introduced by floating point math.

This aggregator calculates the result by using the BigDecimal sum and divide methods. It changes the column binding data type to DECIMAL, although you can change it to something else after.