DAX Information Functions and DAX Date Functions
DAX Information Functions and DAX Date Functions
Functions
DAX Functions
• A DAX function is a previously created formula that computes
using values passed to it as arguments.
• Function arguments can include a column reference, numbers,
text, constants, references to other formulas or functions, or
logical values like TRUE or FALSE.
• They must be given to the function in a specific order. The
values contained in an argument are subjected to a specific
operation by every function. A DAX formula is capable of
supporting multiple arguments.
Types of DAX Functions
:Example
ContainsString
• Depending on whether one string contains another, this function
returns true or false.
• Syntax: CONTAINSSTRING(<within text>, <find text>)
:Example
ContainsStringExact
• Whether one string contains another is indicated by a return
value of TRUE or FALSE.
• Syntax: CONTAINSSTRINGEXACT(<within_text>, <find_text>)
:Example
IsBlank
• If the value is blank, this function returns true;
• Syntax: ISBLANK(<Value>)
:Example
IsNumber
• This function determines whether a value is a number before
returning either true or false.
• Syntax: ISNUMBER(<value>)
:Example
The DAX Information Functions with examples are shown above.
Here is the list of DAX Information Functions:
ISBLANK ;If the value is blank, this function returns true ISBLANK(<Value>)
ISAFTER(<scalar_expression>,
a boolean function that behaves like a Start At
<scalar_expression>[, sort_order [,
ISAFTER clause and returns true for a row that satisfies all
<scalar_expression>, <scalar_expression>[,
.of the conditional criteria
sort_order]]…)
ISONORAFTER(<scalar_expression>,
a boolean function that behaves like a Start At
<scalar_expression>[, sort_order [,
ISONORAFTER clause and returns true for a row that satisfies all
<scalar_expression>, <scalar_expression>[,
.of the conditional criteria
sort_order]]…)