0% found this document useful (0 votes)
22 views

DAX Aggregation Functions

The document summarizes common DAX aggregation functions used to analyze and summarize data in Power BI and Excel. Some key functions include SUM, AVERAGE, MAX, COUNT, and DISTINCTCOUNT which respectively add values, calculate averages, return maximum values, count rows, and count unique values in a column. Other advanced functions like AVERAGEX, SUMX, and COUNTAX allow aggregating expressions over entire tables.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

DAX Aggregation Functions

The document summarizes common DAX aggregation functions used to analyze and summarize data in Power BI and Excel. Some key functions include SUM, AVERAGE, MAX, COUNT, and DISTINCTCOUNT which respectively add values, calculate averages, return maximum values, count rows, and count unique values in a column. Other advanced functions like AVERAGEX, SUMX, and COUNTAX allow aggregating expressions over entire tables.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

DAX Aggregation functions

SUM Adds all the numbers in a column. = SUM(<column>)

Returns the average (arithmetic mean) of


AVERAGE = AVERAGE(<column>)
all the numbers in a column.

Returns the largest numeric value in a MAX(<column>)


MAX column, or between two scalar =
expressions. MAX(<expression1>, <expression2>)

Returns the sum of an expression


SUMX = SUMX(<table>,<expression>)
evaluated for each row in a table.

Counts the number of rows in the


COUNT specified column that contain non-blank = COUNT(<column>)
values.

https://www.linkedin.com/in/sagardodamani/
DAX Aggregation functions

APPROXIMATEDI Returns an estimated count of unique


=
APPROXIMATEDISTINCTCOUNT
values in a column. (<column>)
STINCTCOUNT

Returns the average (arithmetic mean) of


AVERAGEA = AVERAGEA(<column>)
the values in a column.

Calculates the average (arithmetic mean)


AVERAGEX of a set of expressions evaluated over a = AVERAGEX(<table>, <expression>)
table.

Counts the number of rows in the


COUNTA specified column that contain non-blank = COUNTA(<column>)
values.

Counts non-blank results when


COUNTAX evaluating the result of an expression = COUNTAX (<table>, <expression>)
over a table.

https://www.linkedin.com/in/sagardodamani/
DAX Aggregation functions

Counts the number of blank cells in a


COUNTBLANK = COUNTBLANK(<column>)
column.

Counts the number of rows in the


COUNTROWS specified table, or in a table defined by = COUNTROWS([<table>])
an expression.

Counts the number of rows that contain


a number or an expression that evaluates COUNTX(<table>, <expression>)
COUNTX to a number, when evaluating an
=
expression over a table.

Counts the number of distinct values in a


DISTINCTCOUNT column.
= DISTINCTCOUNT(<column>)

DISTINCTCOUNT Counts the number of distinct values in a


= DISTINCTCOUNTNOBLANK
column. (<column>)
NOBLANK
https://www.linkedin.com/in/sagardodamani/
DAX Aggregation functions

MAXA Returns the largest value in a column. = MAXA(<column>)

Evaluates an expression for each row of a MAXX(<table>,<expression>,


MAXX table and returns the largest numeric =
[<variant>])
value.

Returns the smallest value in a column,


MINA including any logical values and numbers = MINA(<column>,)
represented as text.

Returns the smallest numeric value that


MINX results from evaluating an expression for = MINX(<table>,<expression>,
each row of a table. [<variant>])

Returns the smallest numeric value in a MIN(<column>)


MIN column, or between two scalar =
expressions. MIN(<expression1>, <expression2>)

https://www.linkedin.com/in/sagardodamani/
DAX Aggregation functions

Returns the product of an expression


PRODUCTX = PRODUCTX(<table>,<expression>)
evaluated for each row in a table.

Returns the product of the numbers in a


PRODUCT column.
= PRODUCT (<column>)

https://www.linkedin.com/in/sagardodamani/

You might also like