Overview
AVERAGE returns the arithmetic mean of values in a single column. AVERAGEX iterates over a table, evaluates an expression for each row, then averages those results—essential when the value to average is computed from multiple columns.
Choosing the wrong function leads to incorrect insights: averaging pre-aggregated totals is not the same as averaging per-line calculations.