AVERAGEX – DAX Guide
dax.guide › averagexJan 18, 2023 · -- AVERAGE is the short version of AVERAGEX, when used with one column only -- In DAX, there are no differences between AVERAGEA and AVERAGE DEFINE MEASURE Sales[AVG Quantity 1] = AVERAGE ( Sales[Quantity] ) MEASURE Sales[AVG Quantity 2] = AVERAGEX ( Sales, Sales[Quantity] ) MEASURE Sales[AVG Line Amount] = AVERAGEX ( Sales, Sales[Quantity] * Sales[Net Price] ) EVALUATE SUMMARIZECOLUMNS ( 'Product'[Color], "AVG Quantity 1", [AVG Quantity 1], "AVG Quantity 2", [AVG Quantity 2], "AVG Line ...
AVERAGEX function (DAX) - DAX | Microsoft Learn
learn.microsoft.com › en-us › daxJun 21, 2022 · The AVERAGEX function enables you to evaluate expressions for each row of a table, and then take the resulting set of values and calculate its arithmetic mean. Therefore, the function takes a table as its first argument, and an expression as the second argument. In all other respects, AVERAGEX follows the same rules as AVERAGE.