DAX Functions List Quick Reference
DAX Functions List Quick Reference
53
DAX Functions List
This DAX functions quick reference guide has been prepared by Matt Allington from
http://exceleratorbi.com.au and contains a list of all the current DAX functions in a summarised and easy to
use format. You can print the document and/or use the search features for PDF documents to search for
the function you are looking for.
This document is a supplement and is not intended to replace the more detailed documentation that is
available online.
When looking for online documentation it is best to do a web search from your favourite search engine by
specifying the function name followed by the word DAX i.e. “FunctionName DAX”.
Tip: If you are going to search this document for a function name using search, then type the function name
followed by an open bracket. E.g. instead of searching for VALUES you should search VALUES(.
Contents
Power BI Online Training Power Query Online Training Power BI Live Training Learn to Write DAX in Power BI Learn to Write DAX in Excel
[, <alternateResult>]
)
USERNAME() Returns the username from the credentials given to the system
at connection time. If this is a Power BI Desktop or Excel file
it will be in the format Domain\Username. If it is in the Power
BI Service, it will be in the format Username@domain.com
…,
name, expression,
[name, expression]
…
)
SUMMARIZECOLUMNS( Returns a summary table over a set of groups. A table which
includes combinations of values from the supplied columns,
groupBy_columnName
based on the grouping specified.
[, groupBy_columnName]
Only rows for which at least one of the supplied expressions
…, return a non-blank value are included in the table returned.
[filterTable] … If all expressions evaluate to BLANK/NULL for a row, that row
[, name, expression] … is not included in the table returned.
)
FIND( Returns the starting position of one text string within another
text string. FIND is case-sensitive.
find_text,
within_text
[, start_num]
[, NotFoundValue]
)
DAX Time Intelligence Functions that return both a Table and a Scalar
These functions return a table containing a single column and single row with a date value (can be used as
a scalar value or a table input to another function).
STARTOFYEAR( Returns a table containing a single column and single row with
the first date of the year in the current context for the specified
Dates,
column of dates.
[year end date]
Therefore, this function can be used as an argument to any
) function that requires a table in its arguments. Also, the
returned value can be used whenever a date value is required.
PREVIOUSMONTH(dates) Returns a table that contains a column of all dates from the
previous month, based on the first date in the dates column,
in the current context.
Designed to be used inside a CALCULATE as a table filter.
E.g. You can create a measure ‘Previous Month Sales’.
PREVIOUSQUARTER(dates) Returns a table that contains a column of all dates from the
previous quarter, based on the first date in the dates column,
in the current context.
Designed to be used inside a CALCULATE as a table filter.
E.g. You can create a measure ‘Previous Quarter Sales’.