DAX Functions For Reference
DAX Functions For Reference
DAX Functions
Date and Time Functions DAY Function DAY(<date>) <<datetime or text>> Returns the day of the month, a number from 1 to 31.
Returns the week number for the given date and year
Date and Time Functions WEEKNUM Function WEEKNUM(<date>, <return_type>) according to the return_type value. The week number
indicates where the week falls numerically within a year.
DAX Functions
DAX Functions
DAX Functions
Math and Trig Functions ODD Function ODD(number) Returns number rounded up to the nearest odd integer.
DAX Functions
DAX Functions
Statistical Functions COUNTBLANK Function COUNTBLANK(<column>) Counts the number of blank cells in a column.
The COUNTROWS function counts the number of rows in
Statistical Functions COUNTROWS Function COUNTROWS(<table>) the specified table, or in a table defined by an
expression.
Counts the number of rows that contain a number or an
Statistical Functions COUNTX Function COUNTX(<table>,<expression>) expression that evaluates to a number, when evaluating
an expression over a table.
DAX Functions
ROW(<name>, <expression>[[,<name>, Returns a table with a single row containing values that
Statistical Functions ROW Function <expression>]…]) result from the expressions given to each column.
SAMPLE(<n_value>, <table>,
Statistical Functions SAMPLE Function <orderBy_expression>, [<order>[, Returns a sample of N rows from the specified table.
<orderBy_expression>, [<order>]]…])
SELECTCOLUMNS(<table>, <name>,
Adds calculated columns to the given table or table
Statistical Functions SELECTCOLUMNS Function <scalar_expression> [, <name>,
<scalar_expression>]…) expression.
Statistical Functions SIN Function SIN(number) Returns the sine of the given angle.
Statistical Functions SINH Function SINH(number) Returns the hyperbolic sine of a number.
Statistical Functions STDEV.P Function STDEV.P(<ColumnName>) Returns the standard deviation of the entire population.
Statistical Functions STDEV.S Function STDEV.S(<ColumnName>) Returns the standard deviation of a sample population.
Statistical Functions STDEVX.P Function STDEVX.P(<table>, <expression>) Returns the standard deviation of the entire population.
Statistical Functions STDEVX.S Function STDEVX.S(<table>, <expression>) Returns the standard deviation of a sample population.
Statistical Functions SQRTPI Function SQRTPI(number) Returns the square root of (number * pi).
SUMMARIZE(<table>,
<groupBy_columnName>[, Returns a summary table for the requested totals over a
Statistical Functions SUMMARIZE Function <groupBy_columnName>]…[, <name>, set of groups.
<expression>]…)
Statistical Functions TAN Function TAN(number) Returns the tangent of the given angle.
Statistical Functions TANH Function TANH(number) Returns the hyperbolic tangent of a number.
TOPN(<n_value>, <table>,
Statistical Functions TOPN Function <orderBy_expression>, [<order>[, Returns the top N rows of the specified table.
<orderBy_expression>, [<order>]]…])
Statistical Functions VAR.P Function VAR.P(<columnName>) Returns the variance of the entire population.
Statistical Functions VAR.S Function VAR.S(<columnName>) Returns the variance of a sample population.
Statistical Functions VARX.P Function VARX.P(<table>, <expression>) Returns the variance of the entire population.
Statistical Functions VARX.S Function VARX.S(<table>, <expression>) Returns the variance of a sample population.
XIRR(<table>, <values>, <dates>, Returns the internal rate of return for a schedule of cash
Statistical Functions XIRR Function [guess]) flows that is not necessarily periodic. New to 2016.
XNPV(<table>, <values>, <dates>, Returns the present value for a schedule of cash flows
Statistical Functions XNPV Function <rate>) that is not necessarily periodic. New to 2016.
Text functions BLANK Function BLANK() Returns a blank.
Returns a numeric code for the first character in a text
Text functions CODE Function CODE(text) string. The returned code corresponds to the character
set used by your computer.
Text functions CONCATENATE Function CONCATENATE(<text1>, <text2>) Joins two text strings into one text string.
CONCATENATEX(<table>, <expression>, Concatenates the result of an expression evaluated for
Text functions CONCATENATEX Function [delimiter]) each row in a table. New to 2016.
FIND(<find_text>, <within_text>[, Returns the starting position of one text string within
Text functions FIND Function [<start_num>][, <NotFoundValue>]]) another text string. FIND is case-sensitive.
DAX Functions