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

List of PowerPivot DAX Functions With Description

This document contains a list of DAX functions grouped into categories like date/time, information, filter/value, logical, and math/trig functions. It provides the function name and a brief description of what each function does. Some key functions listed include DATE, NOW, ISBLANK, CALCULATE, DISTINCT, AND, ABS, and PI. The functions can be used to manipulate dates, evaluate logic, filter contexts, and perform various mathematical operations on data in PowerPivot.

Uploaded by

khadarskb19
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
384 views

List of PowerPivot DAX Functions With Description

This document contains a list of DAX functions grouped into categories like date/time, information, filter/value, logical, and math/trig functions. It provides the function name and a brief description of what each function does. Some key functions listed include DATE, NOW, ISBLANK, CALCULATE, DISTINCT, AND, ABS, and PI. The functions can be used to manipulate dates, evaluate logic, filter contexts, and perform various mathematical operations on data in PowerPivot.

Uploaded by

khadarskb19
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 14

List of PowerPivot DAX functions with

description
DATE AND TIME FUNCTIONS
Function Description
DATE(<year>, <month>,
Returns the specified date in datetime format.
<day>)
DATEVALUE(date_text) Converts a date in the form of text to a date in datetime format
DAY(<date>) Returns the day of the month, a number from 1 to 31.
Returns the date that is the indicated number of months before
EDATE(<start_date>, or after the start date. Use EDATE to calculate maturity dates
<months>) 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
EOMONTH(<start_date>, month, before or after a specified number of months. Use
<months>) 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.) to 23 (11:00
HOUR(<datetime>)
P.M.).
Returns the minute as a number from 0 to 59, given a date and
MINUTE(<datetime>)
time value.
Returns the month as a number from 1 (January) to 12
MONTH(<datetime>)
(December).
NOW() Returns the current date and time in datetime format.
SECOND(<time>) Returns the seconds of a time value, as a number from 0 to 59
Converts hours, minutes, and seconds given as numbers to a
TIME(hour, minute, second)
time in datetime format.
TIMEVALUE(time_text) Converts a time in text format to a time in datetime format.
TODAY() Returns the current date.
Returns a number from 1 to 7 identifying the day of the week
WEEKDAY(<date>,
of a date. By default the day ranges from 1 (Sunday) to 7
<return_type>)
(Saturday).
Returns the week number for the given date and year according
WEEKNUM(<date>,
to the specified convention. The week number indicates where
<return_type>)
the week falls numerically within a year.
Returns the year of a date as a four digit integer in the range
YEAR(<date>)
1900-9999.
YEARFRAC(<start_date>, Calculates the fraction of the year represented by the number of
<end_date>, <basis>) whole days between two dates. Use the YEARFRAC
worksheet function to identify the proportion of a whole year's
benefits or obligations to assign to a specific term.

INFORMATION FUNCTIONS
Function Description
ISBLANK(<value>) Checks whether a value is blank, and returns TRUE or FALSE.
ISERROR(<value>) Checks whether a value is an error, and returns TRUE or FALSE.
Checks whether a value is a logical value, (TRUE or FALSE), and
ISLOGICAL(<value>)
returns TRUE or FALSE.
ISNONTEXT(<value> Checks whether a value is not text (blank cells are not text), and returns
) TRUE or FALSE.
ISNUMBER(<value>) Checks whether a value is a number, and returns TRUE or FALSE.
ISTEXT(<value>) Checks whether a value is text, and returns TRUE or FALSE.

FILTER AND VALUE FUNCTIONS


Function Description
Returns all the rows in a table, or all the
ALL(<table_or_column>) values in a column, ignoring any filters
that might have been applied.
Overrides all context filters in the table
ALLEXCEPT(<table>,column1>,<column2>,…) except filters that have been applied to the
specified columns.
BLANK() Returns a blank.
Evaluates an expression in a context that is
CALCULATE(<expression>,<filter1>,<filter2>…)
modified by the specified filters.
CALCULATETABLE( <expression>, <filter1>, Evaluates a table expression in a context
<filter2>,…) modified by filters.
Returns a one-column table that contains
DISTINCT(<column>) the distinct values from the specified
column.
Returns the current value of the specified
EARLIER(<column>, <number>) column in an outer evaluation pass of the
mentioned column.
Returns the current value of the specified
EARLIEST(<table_or_column>) column in an outer evaluation pass of the
mentioned column
Returns a table that represents a subset of
FILTER(<table>,<filter>)
another table or expression.
RELATED(<column>) Returns a related value from another table
Follows an existing relationship, in either
RELATEDTABLE(<table>) direction, and returns a table that contains
all matching rows from the specified table.
Returns a one-column table that contains
the distinct values from the specified
VALUES(<column>) column. This function is similar to
DISTINCT function, but VALUES
function can also return Unknown member
Returns all the rows, except for blank
ALLNONBLANKROW(?) rows, in a table or column, and disregards
any context filters that might exist.
Returns the first non-blank values in
FIRSTNONBLANK(<column>,<expression>)
column, filtered by expression.

LOGICAL FUNCTIONS
Function Description
Checks whether all arguments are TRUE, and returns
AND(<logical1>,<logical2>,…)
TRUE if all arguments are TRUE.
FALSE() Returns the logical value FALSE.
Checks if a condition provided as the first argument is
IF(logical_test>,<value_if_true>,
met. Returns one value if the condition is TRUE, and
value_if_false)
returns another value if the condition is FALSE.
Returns value_if_error if the first expression is an error
IFERROR(value, value_if_error)
and the value of the expression itself if otherwise.
NOT(<logical>) Changes FALSE to TRUE, or TRUE to FALSE.
TRUE() Returns the logical value TRUE.
Checks whether one of the arguments is TRUE to return
OR(<logical1>,<logical2>,…) TRUE. The function returns FALSE if all arguments are
FALSE

MATH AND TRIG FUNCTIONS


Function Description
ABS(<number>) Returns the absolute value of a number.
Rounds a number up, to the nearest integer or to the
CEILING(<number>, <significance>)
nearest multiple of significance.
Returns e raised to the power of a given number. The
EXP(<number>) constant e equals 2.71828182845904, the base of the
natural logarithm.
FACT(<number>) Returns the factorial of a number, equal to the series
1*2*3*...* , ending in the given number.
Rounds a number down, toward zero, to the nearest
FLOOR(<number>, <significance>)
multiple of significance.
INT(<number>) Rounds a number down to the nearest integer.
Returns the natural logarithm of a number. Natural
LN(<number>) logarithms are based on the constant e
(2.71828182845904).
Returns the logarithm of a number to the base you
LOG(<number>,<base>)
specify.
LOG10(<number>) Returns the base-10 logarithm of a number.
Returns the remainder after a number is divided by a
MOD(<number>, <divisor>) divisor. The result always has the same sign as the
divisor.
MROUND(<number>, <multiple>) Returns a number rounded to the desired multiple.
Returns the value of Pi, 3.14159265358979, accurate to
PI()
15 digits.
POWER(<number>, <power>) Returns the result of a number raised to a power.
Performs division and returns only the integer portion of
QUOTIENT(<numerator>,
the division result. Use this function when you want to
<denominator>)
discard the remainder of division.
ROUND(<number>, <num_digits>) Rounds a number to the specified number of digits.
ROUNDDOWN(<number>,
Rounds a number down, toward zero.
<num_digits>)
ROUNDUP(<number>,
Rounds a number up, away from 0 (zero).
<num_digits>)
Determines the sign of a number, the result of a
calculation, or a value in a column. The function returns
SIGN(<number>)
1 if the number is positive, 0 (zero) if the number is zero,
or -1 if the number is negative.
SQRT(<number>) Returns the square root of a number.
Truncates a number to an integer by removing the
TRUNC(<number>,<num_digits>)
decimal, or fractional, part of the number.
Returns a random number greater than or equal to 0 and
less than 1, evenly distributed. The number that is
[vb] RAND()
returned changes each time the cell containing this
function is recalculated.
[vb] Returns a random number between the numbers you
RANDBETWEEN(<bottom>,<top>) specify

STATISTICAL FUNCTIONS
Function Description
Returns the average (arithmetic mean) of all the numbers in a
AVERAGE(<column>)
column.
Returns the average (arithmetic mean) of the values in a
AVERAGEA(<column>)
column. Handles text and non-numeric values.
AVERAGEX(<table>, Calculates the average (arithmetic mean) of a set of expressions
<expression>) evaluated over a table
The COUNT function counts the number of cells in a column
COUNT(<column>)
that contain numbers.
The COUNTA function counts the number of cells in a column
COUNTA(<column>)
that are not empty.
COUNTAX(<table>, The COUNTAX function counts nonblank results when
<expression>) evaluating the result of an expression over a table.
COUNTBLANK(<column>) Counts the number of blank cells in a column.
The COUNTROWS function counts the number of rows in the
COUNTROWS(<table>)
specified table, or in a table defined by an expression.
Counts the number of rows that contain a number or an
COUNTX(<table>,
expression that evaluates to a number, when evaluating an
<expression>)
expression over a table.
MAX(<column>) Returns the largest numeric value in a column.
Returns the largest value in a column. Logical values and
MAXA(<column>)
blanks are counted.
Evaluates an expression for each row of a table and returns the
MAXX(<table>, <expression>)
largest numeric value.
Returns the smallest numeric value in a column. Ignores logical
MIN(<column>)
values and text.
Returns the smallest value in a column, including any logical
MINA(<column>)
values and numbers represented as text.
Returns the smallest numeric value that results from evaluating
MINX(<table>, < expression>)
an expression for each row of a table.
SUM(<column>) Adds all the numbers in a column.
Returns the sum of an expression evaluated for each row in a
SUMX(<table>, <expression>)
table.

TEXT FUNCTIONS
Function Description
Returns a numeric code for the first character in a text string,
CODE(<text>)
in the character set used by your computer.
CONCATENATE(<text1>, The CONCATENATE function joins multiple text strings
<text2>,…) into one text string. The joined items can be text, numbers or
Boolean values represented as text, or a combination of those
items. You can also use a column reference if the column
contains appropriate values.
Compares two text strings and returns TRUE if they are
exactly the same, FALSE otherwise. EXACT is case-
EXACT(<text1>,<text2>)
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 within another
start_num) text string. FIND is case-sensitive.
Rounds a number to the specified number of decimals and
FIXED(<number>, <decimals>,
returns the result as text. You can specify that the result be
<no_commas>)
returned with or without commas.
Returns the specified number of characters from the start of a
LEFT(<text>, <num_chars>)
text string.
LEN(<text>) Returns the number of characters in a text string.
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 string,
<num_chars>) given a starting position and length.
REPLACE(<old_text>,
REPLACE replaces part of a text string, based on the number
<start_num>, <num_chars>,
of characters you specify, with a different text string.
<new_text>)
Repeats text a given number of times. Use REPT to fill a cell
REPT(<text>, <num_times>)
with a number of instances of a text string
RIGHT returns the last character or characters in a text string,
RIGHT(<text>, <num_chars>)
based on the number of characters you specify.
Returns the number of the character at which a specific
SEARCH(<search_text>,
character or text string is first found, reading left to right.
<within_text>, [start_num])
Search is case-sensitive.
SUBSTITUTE(<text>,
<old_text>, <new_text>, Replaces existing text with new text in a text string.
<instance_num>)
Removes all spaces from text except for single spaces
TRIM(<text>)
between words.
UPPER (<text>) Converts a text string to all uppercase letters
VALUE(<text>) Converts a text string that represents a number to a number.
FORMAT(<value>,
Converts a value to text according to the specified format.
<format_string>)

TIME INTELLIGENCE FUNCTIONS


Function Description
Evaluates the
specified
expression at
the calendar
end of the
given month.
The given
month is
CLOSINGBALANCEMONTH(<expression>,<dates>,<filter>)
calculated as
the month of
the latest date
in the dates
argument,
after
applying all
filters.
Evaluates the
specified
expression at
the calendar
end of the
given
quarter. The
given quarter
CLOSINGBALANCEQUARTER(<expression>,<dates>,<filter>) is calculated
as the quarter
of the latest
date in the
dates
argument,
after
applying all
filters.
CLOSINGBALANCEYEAR(<expression>,<dates>,<filter>) Evaluates the
specified
expression at
the calendar
end of the
given year.
The given
year is
calculated as
the year of
the latest date
in the dates
argument,
after
applying all
filters.
Returns a
table of dates
that can be
found in the
specified date
column
DATESINPERIOD(<date_column>,<start_date>,<number_of_intervals>,<interv beginning
als>) with the start
date and
continuing
for the
specified
number of
intervals.
Returns a
table of dates
that can be
found in the
specified date
DATESBETWEEN(<column>,<start_date>,<end_date> column
beginning
with the start
date and
ending with
the end date.
Returns a
table that
contains a
column of
dates, shifted
either
DATEADD(<date_column>,<number_of_intervals>,<interval>)
forward in
time or back
in time from
the dates in
the specified
date column.
FIRSTDATE (<datecolumn>) Returns the
first date in
the current
context for
the specified
Date_Colum
n.
Returns the
last date in
the current
LASTDATE (<datecolumn>) context for
the specified
Date_Colum
n.
LASTNONBLANK (<datecolumn>,<expression>) ?
Returns the
first day of
STARTOFMONTH (<date_column>) the month in
the specified
date column.
Returns the
first day of
STARTOFQUARTER (<date_column>) the quarter in
the specified
date column.
Returns the
first day of
STARTOFYEAR(<date_column>[,<YE_date>]) the year in
the specified
date column.
Returns the
last day of
ENDOFMONTH(<date_column>) the month in
the specified
date column.
Returns the
last day of
ENDOFQUARTER(<date_column>) the quarter in
the specified
date column.
Returns the
last day of
ENDOFYEAR(<date_column>) the year in
the specified
date column.
PARALLELPERIOD(<date_column>,<number_of_intervals>,<intervals>) This function
moves the
specified
number of
intervals and
then returns
all
contiguous
full months
which
contain any
values after
that shift.
Gaps
between the
first and last
dates are
filled in, and
months are
also filled in.
Returns the
previous day
PREVIOUSDAY(<date_column>)
date from
date_column.
Returns the
set of dates in
PREVIOUSMONTH(<date_column>) the previous
month from
date_column.
Returns the
set of dates in
PREVIOUSQUARTER(<date_column>) the previous
quarter from
date_column.
Returns the
set of dates in
PREVIOUSYEAR(<date_column>) the previous
year from
date_column.
Returns the
next day date
NEXTDAY(<date_column>)
from
date_column.
Returns the
set of dates in
NEXTMONTH(<date_column>) the next
month from
date_column.
NEXTQUARTER (<date_column>) Returns the
set of dates
for the next
quarter from
date_column
Returns the
set of dates
NEXTYEAR(<date_column>[,<YE_date>]) for the next
year from
date_column.
Returns the
subset of
dates, from
date_column,
for the
interval that
starts at the
first day of
the month
and ends at
DATESMTD(<date_column>)
the latest date
in the
specified
dates column
for the month
that is the
correspondin
g month of
the latest
date.
DATESQTD (<date_column>) Returns the
subset of
dates, from
date_column,
for the
interval that
starts at the
first day of
the quarter
and ends at
the latest date
in the
specified
dates column
for the
quarter that is
the
correspondin
g quarter of
the latest
date.
Returns the
subset of
dates, from
date_column,
for the
interval that
starts the first
day of the
year and ends
at the latest
DATESYTD (<date_column> [,<YE_date>])
date in the
specified
dates column
for the
quarter that is
the
correspondin
g quarter of
the latest
date.
SAMEPERIODLASTYEAR() - ? ?
Evaluates the
specified
expression at
the calendar
end of the
month prior
the given
month. The
given month
OPENINGBALANCEMONTH(<expression>,<dates>,<filter>)
is calculated
as the month
of the latest
date in the
dates
argument,
after
applying all
filters.
OPENINGBALANCEQUARTER(<expression>,<dates>,<filter>) Evaluates the
specified
expression at
the calendar
end of the
quarter prior
to the given
quarter. The
given quarter
is calculated
as the quarter
of the latest
date in the
dates
argument,
after
applying all
filters.
Evaluates the
specified
expression at
the calendar
end of the
year prior to
the given
year. The
OPENINGBALANCEYEAR(<expression>,<dates>,<filter>) given year is
calculated as
the year of
the latest date
in the dates
argument,
after
applying all
filters.
TotalMTD(<expression>,<dates>,<filter>) Evaluates the
specified
expression
for the
interval that
starts at the
first day of
the month
and ends at
the latest date
in the
specified
dates
column, after
applying all
filters.
Evaluates the
specified
expression
for the
interval that
starts at the
first day of
the quarter
TotalQTD(<expression>,<dates>,<filter>)
and ends at
the latest date
in the
specified
dates
column, after
applying all
filters.
Evaluates the
specified
expression
for the
interval that
starts at the
first day of
TotalYTD(<expression>,<dates>,<filter>) the year and
ends at the
latest date in
the specified
dates
column, after
applying all
filters.

You might also like