List of PowerPivot DAX Functions With Description
List of PowerPivot DAX Functions With Description
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.
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
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>)