0% found this document useful (0 votes)
2 views9 pages

Dax Functions 200116

The document provides a comprehensive overview of DAX (Data Analysis Expressions) functions categorized into Date and Time Functions, Time Intelligence Functions, Filter Functions, and Information Functions. Each function is detailed with its syntax and description, explaining its purpose and usage in data analysis. This serves as a reference guide for users to effectively utilize DAX functions in their data modeling and analysis tasks.

Uploaded by

Kaan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLS, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views9 pages

Dax Functions 200116

The document provides a comprehensive overview of DAX (Data Analysis Expressions) functions categorized into Date and Time Functions, Time Intelligence Functions, Filter Functions, and Information Functions. Each function is detailed with its syntax and description, explaining its purpose and usage in data analysis. This serves as a reference guide for users to effectively utilize DAX functions in their data modeling and analysis tasks.

Uploaded by

Kaan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLS, PDF, TXT or read online on Scribd
You are on page 1/ 9

DAX Functions

DAX Functions

Category Function Syntax Description


Date and Time Functions DATE Function DATE(<year>, <month>, <day>) Returns the specified date in datetime format.
Converts a date in the form of text to a date in
Date and Time Functions DATEVALUE Function DATEVALUE(date_text)
datetime format.
Returns the day of the month, a number from 1 to
Date and Time Functions DAY Function DAY(<date>) <<datetime or text>>
31.
Returns the date that is the indicated number of
months before or after the start date. Use EDATE
Date and Time Functions EDATE Function EDATE(<start_date>, <months>) to calculate maturity dates or due dates that fall
on the same day of the month as the date of
issue.
Returns the date in datetime format of the last
day of the month, before or after a specified
Date and Time Functions EOMONTH Function EOMONTH(<start_date>, <months>) number of months. Use EOMONTH to calculate
maturity dates or due dates that fall on the last
day of the month.
Returns the hour as a number from 0 (12:00 A.M.)
Date and Time Functions HOUR Function HOUR(<datetime>)
to 23 (11:00 P.M.).
Returns the minute as a number from 0 to 59,
Date and Time Functions MINUTE Function MINUTE(<datetime>)
given a date and time value.
Returns the month as a number from 1 (January)
Date and Time Functions MONTH Function MONTH(<datetime>)
to 12 (December).
The NOW function is useful when you need to
display the current date and time on a worksheet
Date and Time Functions NOW Function NOW() or calculate a value based on the current date and
time, and have that value updated each time you
open the worksheet.
Returns the seconds of a time value, as a number
Date and Time Functions SECOND Function SECOND(<time>)
from 0 to 59.
Converts hours, minutes, and seconds given as
Date and Time Functions TIME Function TIME(hour, minute, second)
numbers to a time in datetime format.
Converts a time in text format to a time in
Date and Time Functions TIMEVALUE Function TIMEVALUE(time_text)
datetime format.
Date and Time Functions TODAY Function TODAY() Returns the current date.
Returns a number from 1 to 7 identifying the day
Date and Time Functions WEEKDAY Function WEEKDAY(<date>, <return_type>) of the week of a date. By default the day ranges
from 1 (Sunday) to 7 (Saturday).
Returns the week number for the given date and
year according to the return_type value. The
Date and Time Functions WEEKNUM Function WEEKNUM(<date>, <return_type>)
week number indicates where the week falls
numerically within a year.
Returns the year of a date as a four digit integer
Date and Time Functions YEAR Function YEAR(<date>)
in the range 1900-9999.

Calculates the fraction of the year represented by


the number of whole days between two dates. Use
YEARFRAC(<start_date>,
Date and Time Functions YEARFRAC Function the YEARFRAC worksheet function to identify the
<end_date>, <basis>)
proportion of a whole year's benefits or
obligations to assign to a specific term.

CLOSINGBALANCEMONTH(<expression>, Evaluates the expression at the last date of the


Time Intelligence Functions CLOSINGBALANCEMONTH Function
<dates>[,<filter>]) month in the current context.

Time Intelligence Functions CLOSINGBALANCEQUARTER Function

Time Intelligence Functions CLOSINGBALANCEYEAR Function


Returns a table that contains a column of dates,
DATEADD(<dates>,<number_of_interv shifted either forward or backward in time by the
Time Intelligence Functions DATEADD Function
als>,<interval>) specified number of intervals from the dates in
the current context.
Returns a table that contains a column of dates
DATESBETWEEN(<dates>,<start_date>
Time Intelligence Functions DATESBETWEEN Function that begins with the start_date and continues
,<end_date>)
until the end_date.
DATESINPERIOD(<dates>,<start_date Returns a table that contains a column of dates
Time Intelligence Functions DATESINPERIOD Function >,<number_of_intervals>,<interval that begins with the start_date and continues for
>) the specified number_of_intervals.
Returns a table that contains a column of the
Time Intelligence Functions DATESMTD Function DATESMTD(<dates>) dates for the month to date, in the current
context.
Time Intelligence Functions DATESQTD Function
Time Intelligence Functions DATESYTD Function
Returns the last date of the month in the current
Time Intelligence Functions ENDOFMONTH Function ENDOFMONTH(<dates>)
context for the specified column of dates.
Time Intelligence Functions ENDOFQUARTER Function
Time Intelligence Functions ENDOFYEAR Function
Returns the first date in the current context for
Time Intelligence Functions FIRSTDATE Function FIRSTDATE(<dates>)
the specified column of dates.
Returns the first value in the column, column,
FIRSTNONBLANK(<column>,<expressio
Time Intelligence Functions FIRSTNONBLANK Function filtered by the current context, where the
n>)
expression is not blank.
Returns the last date in the current context for the
Time Intelligence Functions LASTDATE Function LASTDATE(<dates>)
specified column of dates.
Returns the last value in the column, column,
LASTNONBLANK(<column>,<expression
Time Intelligence Functions LASTNONBLANK Function filtered by the current context, where the
>)
expression is not blank.
Returns a table that contains a column of all dates
from the next day, based on the first date
Time Intelligence Functions NEXTDAY Function NEXTDAY(<dates>)
specified in the dates column in the current
context.

07/15/2025 10:45:50 Page 1 of 9 912362427.xls


DAX Functions

DAX Functions

Category Function Syntax Description


Time Intelligence Functions NEXTMONTH Function
Time Intelligence Functions NEXTQUARTER Function
Time Intelligence Functions NEXTYEAR Function
OPENINGBALANCEMONTH(<expression>, Evaluates the expression at the first date of the
Time Intelligence Functions OPENINGBALANCEMONTH Function
<dates>[,<filter>]) month in the current context.

Time Intelligence Functions OPENINGBALANCEQUARTER Function

Time Intelligence Functions OPENINGBALANCEYEAR Function

Returns a table that contains a column of dates


that represents a period parallel to the dates in
PARALLELPERIOD(<dates>,<number_of
Time Intelligence Functions PARALLELPERIOD Function the specified dates column, in the current
_intervals>,<interval>)
context, with the dates shifted a number of
intervals either forward in time or back in time.

Returns a table that contains a column of all dates


Time Intelligence Functions PREVIOUSDAY Function PREVIOUSDAY(<dates>) representing the day that is previous to the first
date in the dates column, in the current context.
Time Intelligence Functions PREVIOUSMONTH Function
Time Intelligence Functions PREVIOUSQUARTER Function
Time Intelligence Functions PREVIOUSYEAR Function
Returns a table that contains a column of dates
shifted one year back in time from the dates in
Time Intelligence Functions SAMEPERIODLASTYEAR FunctionSAMEPERIODLASTYEAR(<dates>)
the specified dates column, in the current
context.
Returns the first date of the month in the current
Time Intelligence Functions STARTOFMONTH Function STARTOFMONTH(<dates>)
context for the specified column of dates.
Time Intelligence Functions STARTOFQUARTER Function
Time Intelligence Functions STARTOFYEAR Function
TOTALMTD(<expression>,<dates>[,<f Evaluates the value of the expression for the
Time Intelligence Functions TOTALMTD Function
ilter>]) month to date, in the current context.
Time Intelligence Functions TOTALQTD Function
Time Intelligence Functions TOTALYTD Function

ADDMISSINGITEMS(<showAllColumn>[,
<showAllColumn>]…, <table>,
<groupingColumn>[,
<groupingColumn>]…[, filterTable]
Adds combinations of items from multiple columns
…)
to a table if they do not already exist. The
ADDMISSINGITEMS(<showAllColumn>[,
Filter Functions ADDMISSINGITEMS Function determination of which item combinations to add
<showAllColumn>]…, <table>,
is based on referencing source columns which
[ROLLUPISSUBTOTAL(]<groupingColum
contain all the possible values for the columns.
n>[, <isSubtotal_columnName>][,
<groupingColumn>][,
<isSubtotal_columnName>]…[)], [,
filterTable]…)

Returns all the rows in a table, or all the values in


a column, ignoring any filters that might have
ALL( {<table> | <column>[,
Filter Functions ALL Function been applied. This function is useful for clearing
<column>[, <column>[,…]]]} )
filters and creating calculations on all the rows in
a table.
Removes all context filters in the table except
ALLEXCEPT(<table>,<column>[,<colu
Filter Functions ALLEXCEPT Function filters that have been applied to the specified
mn>[,…]])
columns.
From the parent table of a relationship, returns all
rows but the blank row, or all distinct values of a
Filter Functions ALLNOBLANKROW Function ALLNOBLANKROW(<table>|<column>)
column but the blank row, and disregards any
context filters that might exist.
Removes context filters from columns and rows in
ALLSELECTED([<tableName> |
Filter Functions ALLSELECTED Function the current query, while retaining all other context
<columnName>])
filters or explicit filters.
CALCULATE(<expression>,<filter1>, Evaluates an expression in a context that is
Filter Functions CALCULATE Function
<filter2>…) modified by the specified filters.
CALCULATETABLE(<expression>,<filt Evaluates a table expression in a context modified
Filter Functions CALCULATETABLE Function
er1>,<filter2>,…) by the given filters.
Specifies the cross-filtering direction to be used in
CROSSFILTER(<columnName1>,
Filter Functions CROSSFILTER Function a calculation for a relationship that exists between
<columnName2>, <direction>)
two columns.
Returns a one-column table that contains the
distinct values from the specified column. In other
Filter Functions DISTINCT Function DISTINCT(<column>)
words, duplicate values are removed and only
unique values are returned.
Returns the current value of the specified column
Filter Functions EARLIER Function EARLIER(<column>, <number>) in an outer evaluation pass of the mentioned
column.
Returns the current value of the specified column
Filter Functions EARLIEST Function EARLIEST(<column>) in an outer evaluation pass of the specified
column.
Returns a table that represents a subset of
Filter Functions FILTER Function FILTER(<table>,<filter>)
another table or expression.
Returns the values that are directly applied as
Filter Functions FILTERS Function FILTERS(<columnName>)
filters to columnName.
Returns TRUE when the number of directly
Filter Functions HASONEFILTER Function HASONEFILTER(<columnName>) filtered values on columnName is one; otherwise
returns FALSE.

07/15/2025 10:45:50 Page 2 of 9 912362427.xls


DAX Functions

DAX Functions

Category Function Syntax Description


Returns TRUE when the context
Filter Functions HASONEVALUE Function HASONEVALUE(<columnName>) for columnName has been filtered down to one
distinct value only. Otherwise is FALSE.
Returns TRUE when columnName or another
Filter Functions ISCROSSFILTERED Function ISCROSSFILTERED(<columnName>) column in the same or related table is being
filtered.
Returns TRUE when columnName is being filtered
directly. If there is no filter on the column or if the
Filter Functions ISFILTERED Function ISFILTERED(<columnName>) filtering happens because a different column in
the same table or in a related table is being
filtered then the function returns FALSE.
Modifies how filters are applied while evaluating a
Filter Functions KEEPFILTERS Function KEEPFILTERS(<expression>)
CALCULATE or CALCULATETABLE function.
Filter Functions RELATED Function RELATED(<column>) Returns a related value from another table.
Evaluates a table expression in a context modified
Filter Functions RELATEDTABLE Function RELATEDTABLE(<tableName>)
by the given filters.
SUBSTITUTEWITHINDEX(<table>,
<indexColumnName>,
<indexColumnsTable>, Returns a table which represents a left semijoin of
Filter Functions SUBSTITUTEWITHINDEX Function
[<orderBy_expression>, [<order>] the two tables supplied as arguments.
[, <orderBy_expression>,
[<order>]]…])
Specifies the relationship to be used in a specific
USERELATIONSHIP(<columnName1>,<co
Filter Functions USERELATIONSHIP Function calculation as the one that exists between
lumnName2>)
columnName1 and columnName2.

Returns a one-column table that contains the


distinct values from the specified table or column.
Filter Functions VALUES Function VALUES(<TableNameOrColumnName>)
In other words, duplicate values are removed and
only unique values are returned.

CONTAINS(<table>, <columnName>, Returns true if values for all referred columns


Information Functions CONTAINS Function <value>[, <columnName>, <value>] exist, or are contained, in those columns;
…) otherwise, the function returns false.
Returns the content of the CustomData property
Information Functions CUSTOMDATA Function CUSTOMDATA()
in the connection string.
Checks whether a value is blank, and returns
Information Functions ISBLANK Function ISBLANK(<value>)
TRUE or FALSE.
Checks whether a value is an error, and returns
Information Functions ISERROR Function ISERROR(<value>)
TRUE or FALSE.
Returns TRUE if number is even, or FALSE if
Information Functions ISEVEN Function ISEVEN(number)
number is odd.
Checks whether a value is a logical value, (TRUE
Information Functions ISLOGICAL Function ISLOGICAL(<value>)
or FALSE), and returns TRUE or FALSE.
Checks if a value is not text (blank cells are not
Information Functions ISNONTEXT Function ISNONTEXT(<value>)
text), and returns TRUE or FALSE.
Checks whether a value is a number, and returns
Information Functions ISNUMBER Function ISNUMBER(<value>)
TRUE or FALSE.
ISONORAFTER(<scalar_expression>,
A boolean function that emulates the behavior of
<scalar_expression>sort_order]
a ‘Start At’ clause and returns true for a row that
Information Functions ISONORAFTER Function [,scalar_expression>,
meets all of the condition parameters. New for
<scalar_expression>, [sort_order]
2016.
[,…])
Checks if a value is text, and returns TRUE or
Information Functions ISTEXT Function ISTEXT(<value>)
LOOKUPVALUE( <result_columnName>, FALSE.
<search_columnName>, Returns the value in result_columnName for the
Information Functions LOOKUPVALUE Function <search_value>[, row that meets all criteria specified
<search_columnName>, by search_columnName and search_value.
<search_value>]…) Returns the domain name and username from the
Information Functions USERNAME Function USERNAME() credentials given to the system at connection
time
Checks whether both arguments are TRUE, and
Logical Functions AND Function AND(<logical1>,<logical2>) returns TRUE if both arguments are TRUE.
Otherwise returns false.
Logical Functions FALSE Function FALSE() Returns the logical value FALSE.
Checks if a condition provided as the first
IF(logical_test>,<value_if_true>, argument is met. Returns one value if the
Logical Functions IF Function
value_if_false) condition is TRUE, and returns another value if the
condition is FALSE.
Evaluates an expression and returns a specified
Logical Functions IFERROR Function IFERROR(value, value_if_error) value if the expression returns an error; otherwise
returns the value of the expression itself.
Logical Functions NOT Function NOT(<logical>) Changes FALSE to TRUE, or TRUE to FALSE.
Checks whether one of the arguments is TRUE to
Logical Functions OR Function OR(<logical1>,<logical2>) return TRUE. The function returns FALSE if both
arguments are FALSE.
SWITCH(<expression>, <value>, Evaluates an expression against a list of values
Logical Functions SWITCH Function <result>[, <value>, <result>]…[, and returns one of multiple possible result
<else>]) expressions.
Logical Functions TRUE Function TRUE() Returns the logical value TRUE.
Math and Trig Functions ABS Function ABS(<number>) Returns the absolute value of a number.
Returns the arccosine, or inverse cosine, of a
number. The arccosine is the angle whose cosine
Math and Trig Functions ACOS Function ACOS(number)
is number. The returned angle is given in radians
in the range 0 (zero) to pi.
Math and Trig Functions ACOSH Function
Math and Trig Functions ASIN Function
Math and Trig Functions ASINH Function
Math and Trig Functions ATAN Function
Math and Trig Functions ATANH Function

07/15/2025 10:45:50 Page 3 of 9 912362427.xls


DAX Functions

DAX Functions

Category Function Syntax Description


CEILING(<number>, <significance>) Rounds a number up, to the nearest integer or to
Math and Trig Functions CEILING Function
the nearest multiple of significance.
Returns the number of combinations for a given
number of items. Use COMBIN to determine the
Math and Trig Functions COMBIN Function COMBIN(number, number_chosen)
total possible number of groups for a given
number of items.
Returns the number of combinations (with
Math and Trig Functions COMBINA Function COMBINA(number, number_chosen)
repetitions) for a given number of items.
Math and Trig Functions COS Function
Math and Trig Functions COSH Function
Evaluates the argument and returns the result as
Math and Trig Functions CURRENCY Function CURRENCY(<value>)
currency data type.
Math and Trig Functions DEGREES Function DEGREES(angle) Converts radians into degrees.
DIVIDE(<numerator>, <denominator> Performs division and returns alternate result or
Math and Trig Functions DIVIDE Function
[,<alternateresult>]) BLANK() on division by 0.
Returns number rounded up to the nearest even
integer. You can use this function for processing
items that come in twos. For example, a packing
Math and Trig Functions EVEN Function EVEN(number)
crate accepts rows of one or two items. The crate
is full when the number of items, rounded up to
the nearest two, matches the crate's capacity.
Returns e raised to the power of a given number.
Math and Trig Functions EXP Function EXP(<number>) The constant e equals 2.71828182845904, the 3
base of the natural logarithm.
Returns the factorial of a number, equal to the
Math and Trig Functions FACT Function FACT(<number>)
series 1*2*3*...* , ending in the given number.
Rounds a number down, toward zero, to the
Math and Trig Functions FLOOR Function FLOOR(<number>, <significance>)
nearest multiple of significance.

Returns the greatest common divisor of two or


more integers. The greatest common divisor is the
Math and Trig Functions GCD Function GCD(number1, [number2], ...)
largest integer that divides both number1 and
number2 without a remainder.
Math and Trig Functions INT Function INT(<number>) Rounds a number down to the nearest integer.
ISO.CEILING(<number>[, Rounds a number up, to the nearest integer or to
Math and Trig Functions ISO.CEILING Function
<significance>]) the nearest multiple of significance.
Returns the least common multiple of integers.
The least common multiple is the smallest positive
Math and Trig Functions LCM Function LCM(number1, [number2], ...) integer that is a multiple of all integer arguments
number1, number2, and so on. Use LCM to add
fractions with different denominators.
Returns the natural logarithm of a number.
Math and Trig Functions LN Function LN(<number>) Natural logarithms are based on the constant e 1
(2.71828182845904).
Returns the logarithm of a number to the base
Math and Trig Functions LOG Function LOG(<number>,<base>)
you specify.
Math and Trig Functions LOG10 Function LOG10(<number>) Returns the base-10 logarithm of a number.
Returns the remainder after a number is divided
Math and Trig Functions MOD Function MOD(<number>, <divisor>) by a divisor. The result always has the same sign
as the divisor.
Returns a number rounded to the desired
Math and Trig Functions MROUND Function MROUND(<number>, <multiple>)
multiple.
Returns number rounded up to the nearest odd
Math and Trig Functions ODD Function ODD(number)
integer.
Returns the value of Pi, 3.14159265358979,
Math and Trig Functions PI Function PI()
accurate to 15 digits.
Math and Trig Functions POWER Function POWER(<number>, <power>) Returns the result of a number raised to a power. ###
Math and Trig Functions PRODUCT Function PRODUCT(<column>) Returns the product of the numbers in a column.
Returns the product of an expression evaluated
Math and Trig Functions PRODUCTX Function PRODUCTX(<table>, <expression>)
for each row in a table.
Performs division and returns only the integer
QUOTIENT(<numerator>, portion of the division result. Use this function
Math and Trig Functions QUOTIENT Function
<denominator>) when you want to discard the remainder of
division.
Math and Trig Functions RADIANS Function RADIANS(angle) Converts degrees to radians.

Returns a random number greater than or equal


to 0 and less than 1, evenly distributed. The
Math and Trig Functions RAND Function RAND()
number that is returned changes each time the
cell containing this function is recalculated.

Returns a random number in the range between


Math and Trig Functions RANDBETWEEN Function RANDBETWEEN(<bottom>,<top>)
two numbers you specify.
Rounds a number to the specified number of
Math and Trig Functions ROUND Function ROUND(<number>, <num_digits>)
ROUNDDOWN(<number>, <num_digits>) digits.
Math and Trig Functions ROUNDDOWN Function Rounds a number down, toward zero.
Math and Trig Functions ROUNDUP Function ROUNDUP(<number>, <num_digits>) Rounds a number up, away from 0 (zero).

Determines the sign of a number, the result of a


calculation, or a value in a column. The function
Math and Trig Functions SIGN Function SIGN(<number>)
returns 1 if the number is positive, 0 (zero) if the
number is zero, or -1 if the number is negative.
Math and Trig Functions SQRT Function SQRT(<number>) Returns the square root of a number. 3
Math and Trig Functions SUM Function SUM(<column>) Adds all the numbers in a column.
Returns the sum of an expression evaluated for
Math and Trig Functions SUMX Function SUMX(<table>, <expression>)
each row in a table.
Truncates a number to an integer by removing the
Math and Trig Functions TRUNC Function TRUNC(<number>,<num_digits>)
decimal, or fractional, part of the number.

07/15/2025 10:45:50 Page 4 of 9 912362427.xls


DAX Functions

DAX Functions

Category Function Syntax Description


EXCEPT(<table_expression1>, Returns the rows of one table which do not appear
Other functions EXCEPT Function
<table_expression2> in another table.
The GROUPBY function is similar to the
SUMMARIZE function. However, GROUPBY does
not do an implicit CALCULATE for any extension
GROUPBY (<table>, columns that it adds. GROUPBY permits a new
Other functions GROUPBY Function [<groupBy_columnName1>], [<name>, function, CURRENTGROUP(), to be used inside
<expression>]… ) aggregation functions in the extension columns
that it adds. GROUPBY attempts to reuse the data
that has been grouped making it highly
performant.
INTERSECT(<table_expression1>, Returns the row intersection of two tables,
Other functions INTERSECT Function
<table_expression2>) retaining duplicates.
Other functions ISEMPTY Function ISEMPTY(<table_expression>) Checks if a table is empty.

Performs an inner join of a table with another


Other functions NATURALINNERJOIN Function NATURALINNERJOIN(<leftJoinTable>, table. The tables are joined on common columns
<rightJoinTable>) (by name) in the two tables. If the two tables have
no common column names, an error is returned.

Performs a left outer join of a table with another


NATURALLEFTOUTERJOIN(<leftJoinTab table. The tables are joined on common columns
Other functions NATURALLEFTOUTERJOIN Function
le>, <rightJoinTable>) (by name) in the two tables. If the two tables have
no common column names, an error is returned.
SUMMARIZECOLUMNS( <groupBy_column
Other functions SUMMARIZECOLUMNS FunctionName> [, < groupBy_columnName >] Returns a summary table over a set of groups.
…, [<filterTable>]…[, <name>,
<expression>]…)
UNION(<table_expression1>,
Other functions UNION Function <table_expression2> Creates a union (join) table from a pair of tables.
[,<table_expression>]…)

Stores the result of an expression as a named


variable, which can then be passed as an
argument to other measure expressions. Once
Other functions VAR VAR <name> = <expression> resultant values have been calculated for a
variable expression, those values do not change,
even if the variable is referenced in another
expression.

Returns a delimited text string with the identifiers


PATH(<ID_columnName>,
Parent and Child Functions PATH Function of all the parents of the current identifier, starting
<parent_columnName>)
with the oldest and continuing until current.
Returns TRUE if the specified item exists within
Parent and Child Functions PATHCONTAINS Function PATHCONTAINS(<path>, <item>)
the specified path.
Returns the item at the specified position from a
PATHITEM(<path>, <position>[,
Parent and Child Functions PATHITEM Function string resulting from evaluation of a PATH
<type>])
function. Positions are counted from left to right.
Returns the item at the specified position from a
PATHITEMREVERSE(<path>, string resulting from evaluation of a PATH
Parent and Child Functions PATHITEMREVERSE Function
<position>[, <type>]) function. Positions are counted backwards from
right to left.
Returns the number of parents to the specified
Parent and Child Functions PATHLENGTH Function PATHLENGTH(<path>)
item in a given PATH result, including self.
ADDCOLUMNS(<table>, <name>,
Adds calculated columns to the given table or
Statistical Functions ADDCOLUMNS Function <expression>[, <name>,
table expression.
<expression>]…)
Returns the average (arithmetic mean) of all the
Statistical Functions AVERAGE Function AVERAGE(<column>)
numbers in a column.
Returns the average (arithmetic mean) of the
Statistical Functions AVERAGEA Function AVERAGEA(<column>) values in a column. Handles text and non-numeric
values.
Calculates the average (arithmetic mean) of a set
Statistical Functions AVERAGEX Function AVERAGEX(<table>,<expression>)
of expressions evaluated over a table.
Returns the beta distribution. The beta distribution
is commonly used to study variation in the
BETA.DIST(x,alpha,beta,cumulative
Statistical Functions BETA.DIST Function percentage of something across samples, such as
,[A],[B])
the fraction of the day people spend watching
television.
BETA.INV(probability,alpha,beta, Returns the inverse of the beta cumulative
Statistical Functions BETA.INV Function
[A],[B]) probability density function (BETA.DIST).
CHISQ.INV(probability,deg_freedom Returns the inverse of the left-tailed probability of
Statistical Functions CHISQ.INV Function
) the chi-squared distribution.
CHISQ.INV.RT(probability,deg_free Returns the inverse of the right-tailed probability
Statistical Functions CHISQ.INV.RT Function
dom) of the chi-squared distribution.
The confidence interval is a range of values. Your
Statistical Functions CONFIDENCE.NORM Function CONFIDENCE.NORM(alpha,standard_de sample mean, x, is at the center of this range and
v,size)
the range is x ± CONFIDENCE.NORM.
CONFIDENCE.T(alpha,standard_dev,s Returns the confidence interval for a population
Statistical Functions CONFIDENCE.T Function
ize) mean, using a Student's t distribution.
The COUNT function counts the number of cells in
Statistical Functions COUNT Function COUNT(<column>)
a column that contain numbers.
The COUNTA function counts the number of cells
in a column that are not empty. It counts not just
Statistical Functions COUNTA Function COUNTA(<column>) rows that contain numeric values, but also rows
that contain nonblank values, including text,
dates, and logical values.

07/15/2025 10:45:50 Page 5 of 9 912362427.xls


DAX Functions

DAX Functions

Category Function Syntax Description


The COUNTAX function counts nonblank results
when evaluating the result of an expression over a
table. That is, it works just like the COUNTA
Statistical Functions COUNTAX Function COUNTAX(<table>,<expression>)
function, but is used to iterate through the rows in
a table and count rows where the specified
expressions results in a nonblank result.
Statistical Functions COUNTBLANK Function COUNTBLANK(<column>) Counts the number of blank cells in a column.
The COUNTROWS function counts the number of
Statistical Functions COUNTROWS Function COUNTROWS(<table>) rows in the specified table, or in a table defined by
an expression.
Counts the number of rows that contain a number
Statistical Functions COUNTX Function COUNTX(<table>,<expression>) or an expression that evaluates to a number,
when evaluating an expression over a table.
Returns a table that contains the Cartesian
CROSSJOIN(<table>, <table>[, product of all rows from all tables in the
Statistical Functions CROSSJOIN Function
<table>]…) arguments. The columns in the new table are all
DATATABLE (ColumnName1, the columns in all the argument tables.
DataType1, ColumnName2,
Provides a mechanism for declaring an inline set
Statistical Functions DATATABLE Function DataType2..., {{Value1,
of data values.
Value2...}, {ValueN,
ValueN+1...}...})
The DISTINCTCOUNT function counts the number
Statistical Functions DISTINCTCOUNT Function DISTINCTCOUNT(<column>)
of different cells in a column of numbers.
Returns the exponential distribution. Use
EXPON.DIST to model the time between events,
such as how long an automated bank teller takes
Statistical Functions EXPON.DIST Function EXPON.DIST(x,lambda,cumulative)
to deliver cash. For example, you can use
EXPON.DIST to determine the probability that the
process takes at most 1 minute.

Returns a table with the Cartesian product


between each row in table1 and the table that
Statistical Functions GENERATE Function GENERATE(<table1>, <table2>)
results from evaluating table2 in the context of
the current row from table1.

Returns a table with the Cartesian product


between each row in table1 and the table that
Statistical Functions GENERATEALL Function GENERATEALL(<table1>, <table2>)
results from evaluating table2 in the context of
the current row from table1.
Returns the geometric mean of the numbers in a
Statistical Functions GEOMEAN Function GEOMEAN(<column>)
column.
Returns the geometric mean of an expression
Statistical Functions GEOMEANX Function GEOMEANX(<table>, <expression>)
evaluated for each row in a table.
Statistical Functions MAX Function MAX(<column>) Returns the largest numeric value in a column.
Returns the largest value in a column. Logical
Statistical Functions MAXA Function MAXA(<column>)
values and blanks are counted.
Evaluates an expression for each row of a table
Statistical Functions MAXX Function MAXX(<table>,<expression>)
and returns the largest numeric value.
Statistical Functions MEDIAN Function MEDIAN(<column>) Returns the median of numbers in a column.
Returns the median number of an expression
Statistical Functions MEDIANX Function MEDIANX(<table>, <expression>)
evaluated for each row in a table.
Returns the smallest numeric value in a column.
Statistical Functions MIN Function MIN(<column>)
Ignores logical values and text.
Returns the smallest value in a column, including
Statistical Functions MINA Function MINA(<column>) any logical values and numbers represented as
text.
Returns the smallest numeric value that results
Statistical Functions MINX Function MINX(<table>, < expression>) from evaluating an expression for each row of a
table.
Returns the k-th percentile of values in a range,
Statistical Functions PERCENTILE.EXC Function PERCENTILE.EXC(<column>, <k>)
where k is in the range 0..1, exclusive.
Returns the k-th percentile of values in a range,
Statistical Functions PERCENTILE.INC Function PERCENTILE.INC(<column>, <k>)
where k is in the range 0..1, inclusive.
PERCENTILEX.EXC(<table>, Returns the percentile number of an expression
Statistical Functions PERCENTILEX.EXC Function
<expression>, k) evaluated for each row in a table.
PERCENTILEX.INC(<table>, Returns the percentile number of an expression
Statistical Functions PERCENTILEX.INC Function
<expression>;, k) evaluated for each row in a table.
Returns the Poisson distribution. A common
application of the Poisson distribution is predicting
Statistical Functions POISSON.DIST Function POISSON.DIST(x,mean,cumulative) the number of events over a specific time, such as
the number of cars arriving at a toll plaza in 1
minute.
RANK.EQ(<value>, <columnName>[, Returns the ranking of a number in a list of
Statistical Functions RANK.EQ Function
<order>]) numbers.
RANKX(<table>, <expression>[, Returns the ranking of a number in a list of
Statistical Functions RANKX Function
<value>[, <order>[, <ties>]]]) numbers for each row in the table argument.
ROW(<name>, Returns a table with a single row containing
Statistical Functions ROW Function <expression>[[,<name>, values that result from the expressions given to
<expression>]…]) each column.
SAMPLE(<n_value>, <table>,
<orderBy_expression>, [<order>[, Returns a sample of N rows from the specified
Statistical Functions SAMPLE Function
<orderBy_expression>, [<order>]] table.
…])
SELECTCOLUMNS(<table>, <name>,
Adds calculated columns to the given table or
Statistical Functions SELECTCOLUMNS Function <scalar_expression> [, <name>,
table expression.
<scalar_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.
Returns the standard deviation of the entire
Statistical Functions STDEV.P Function STDEV.P(<ColumnName>)
population.

07/15/2025 10:45:50 Page 6 of 9 912362427.xls


DAX Functions

DAX Functions

Category Function Syntax Description


Returns the standard deviation of a sample
Statistical Functions STDEV.S Function STDEV.S(<ColumnName>)
population.
Returns the standard deviation of the entire
Statistical Functions STDEVX.P Function STDEVX.P(<table>, <expression>)
population.
Returns the standard deviation of a sample
Statistical Functions STDEVX.S Function STDEVX.S(<table>, <expression>)
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
Statistical Functions SUMMARIZE Function
<groupBy_columnName>]…[, <name>, over a 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>,
<orderBy_expression>, [<order>[,
Statistical Functions TOPN Function 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
Statistical Functions XIRR Function
[guess]) of cash flows that is not necessarily periodic.
XNPV(<table>, <values>, <dates>, Returns the present value for a schedule of cash
Statistical Functions XNPV Function
<rate>) flows that is not necessarily periodic.
Text functions BLANK Function BLANK() Returns a blank.
Returns a numeric code for the first character in a
Text functions CODE Function CODE(text) 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>, Concatenates the result of an expression
Text functions CONCATENATEX Function
<expression>, [delimiter]) evaluated for each row in a table.
Compares two text strings and returns TRUE if
they are exactly the same, FALSE otherwise.
Text functions EXACT Function EXACT(<text1>,<text2>) EXACT is case-sensitive but ignores formatting
differences. You can use EXACT to test text being
entered into a document.
FIND(<find_text>, <within_text>[,
Returns the starting position of one text string
Text functions FIND Function [<start_num>][,
within another text string. FIND is case-sensitive.
<NotFoundValue>]])
Rounds a number to the specified number of
FIXED(<number>, <decimals>, decimals and returns the result as text. You can
Text functions FIXED Function
<no_commas>) specify that the result be returned with or without
commas.
Converts a value to text according to the specified
Text functions FORMAT Function FORMAT(<value>, <format_string>)
format.
Text functions Pre-Defined Numeric Formats for the FORMAT Function

Text functions Custom Numeric Formats for the FORMAT Function

Text functions Pre-defined Date and Time formats for the FORMAT Function

Text functions Custom Date and Time formats for the FORMAT Function

Returns the specified number of characters from


Text functions LEFT Function LEFT(<text>, <num_chars>)
the start of a text string.
Text functions LEN Function LEN(<text>) Returns the number of characters in a text string.
Text functions LOWER Function LOWER(<text>) Converts all letters in a text string to lowercase.
MID(<text>, <start_num>, Returns a string of characters from the middle of a
Text functions MID Function
<num_chars>) text string, given a starting position and length.
REPLACE replaces part of a text string, based on
REPLACE(<old_text>, <start_num>,
Text functions REPLACE Function the number of characters you specify, with a
<num_chars>, <new_text>)
different text string.
Repeats text a given number of times. Use REPT
Text functions REPT Function REPT(<text>, <num_times>) to fill a cell with a number of instances of a text
string.
RIGHT returns the last character or characters in a
Text functions RIGHT Function RIGHT(<text>, <num_chars>) text string, based on the number of characters
you specify.
Returns the number of the character at which a
SEARCH(<find_text>,
specific character or text string is first found,
Text functions SEARCH Function <within_text>[, [<start_num>][,
reading left to right. Search is case-insensitive and
<NotFoundValue>]])
accent sensitive.
SUBSTITUTE(<text>, <old_text>, Replaces existing text with new text in a text
Text functions SUBSTITUTE Function
<new_text>, <instance_num>) string.
Removes all spaces from text except for single
Text functions TRIM Function TRIM(<text>)
spaces between words.
Text functions UPPER Function UPPER (<text>) Converts a text string to all uppercase letters
Converts a text string that represents a number to
Text functions VALUE Function VALUE(<text>)
a number.

07/15/2025 10:45:50 Page 7 of 9 912362427.xls


measure 'Reseller Sales'[Reseller Sales Amount]=sum('Reseller Sales'[Sales Amount])
measure 'Reseller Sales'[Reseller Grand Total]=calculate(sum('Reseller Sales'[Sales Amount]), ALL('Reseller Sales'))
measure 'Reseller Sales'[Reseller Visual Total]=calculate(sum('Reseller Sales'[Sales Amount]), ALLSELECTED())
measure 'Reseller Sales'[Reseller Visual Total for All of Calendar Year]=calculate(sum('Reseller Sales'[Sales Amount]), ALLSE
measure 'Reseller Sales'[Reseller Visual Total for All of Product Category Name]=calculate(sum('Reseller Sales'[Sales Amou
[Product
[Calenda [Reseller Sales
Category [Reseller Grand Total]
r Year] Amount]
Name]
Accessories 2002 $626 $80,450,597
Bikes 2002 $73,779 $80,450,597
Clothing 2002 $12,132 $80,450,597
Components 2002 $4,958 $80,450,597
ount]), ALL('Reseller Sales'))
ount]), ALLSELECTED())
Reseller Sales'[Sales Amount]), ALLSELECTED('Date'[Calendar Year]))
ate(sum('Reseller Sales'[Sales Amount]), ALLSELECTED('Product Category'[Product Category Name]))
[Reseller Visual Total [Reseller Visual Total
[Reseller Visual Total] for All of Calendar for All of Product
Year] Category Name]
$877,007 $38,786 $91,495
$877,007 $689,288 $91,495
$877,007 $95,091 $91,495
$877,007 $53,842 $91,495

You might also like