Tutorial with example
In this series of statistical functions we are looking at the AVERAGE:
Download example file:
Download Power BI file: here.
This function takes the specified column as an argument and finds the average of the values in that column. If you want to find the average of an expression that evaluates to a set of numbers, use the AVERAGEX function instead.
Nonnumeric values in the column are handled as follows:
- If the column contains text, no aggregation can be performed, and the functions returns blanks.
- If the column contains logical values or empty cells, those values are ignored.
- Cells with the value zero are included.
- When you average cells, you must keep in mind the difference between an empty cell and a cell that contains the value 0 (zero). When a cell contains 0, it is added to the sum of numbers and the row is counted among the number of rows used as the divisor. However, when a cell contains a blank, the row is not counted.
Whenever there are no rows to aggregate, the function returns a blank. However, if there are rows, but none of them meet the specified criteria, the function returns 0. Excel also returns a zero if no rows are found that meet the conditions.