AVERAGEX DAX Function in Power BI

The AVERAGEX DAX function evaluates an expression row by row over a table and returns the average (arithmetic mean) of those values.

DAX Syntax AVERAGEX(table, expression)

The function has the following parameters:

Example: Basic AVERAGEX with a calculated value.

DAX

AVERAGEX Measure =
AVERAGEX(
    MarksTable,           -- Table to iterate over
    MarksTable[Marks]     -- Expression to evaluate and average
)      

This is like AVERAGE(MarksTable[Marks]). The output of the above code is shown below:

AVERAGEX DAX Function in Power BI