What are DAX Functions
What are DAX Functions
2. DATEVALUE: This function converts the format of the date from text to datetime.
It operates using the following syntax:
DATEVALUE(date_text)
3. TODAY: This function returns the current date as output and operates using the
following syntax:
TODAY()
WEEKDAY(<date>, <return_type>)
5. HOUR: This function returns the current hour in the form of a number ( 0 for 12:00
A.M. and 23 for 11:00 P.M.). It operates using the following syntax:
HOUR(<datetime>)
The other important functions under Day and Time Functions are as follows:
MINUTE
MONTH
SECOND
DAX Edate
ISERROR
ISEVEN
ISLOGICAL
ISNUMBER
ISODD
ISTEXT
DAX Functions for Power BI: Mathematical & Trigonometric Functions
1. ABS: This function returns the absolute value of the given input
number using the following syntax:
ABS(<number>)
CEILING(<number>, <significance>)
ASIN
ATAN
COS
DEGREES
DIVIDE
EVEN
EXP
FACT
Gives you a random number that falls between the two values you
provide.
Syntax: RANDBETWEEN(<bottom>, <top>)
1. BLANK: This function simply returns a blank and works using the
following syntax:
BLANK()
4. EXACT: This function compares two text strings and if they are
exactly the same, it returns a true value. It operates using the
following syntax:
EXACT(<text1>,<text2>)
5. FIND: This function returns the starting point of a text string within
another input text string. It operates using the following syntax:
FIND(<find_text>, <within_text>[, [<start_num>][, <NotFoundValue>]])
COMBINEVALUES
FORMAT
LEFT
MID
REPLACE
RIGHT
SEARCH
SUBSTITUTE
TRIM
Aggregate Functions
DAX has a number of aggregate functions.
MIN
MAX
Average
SUM
SUMX
AND
DAX COUNT
COUNT(<column>)
COUNTA(<column>)
DAX CountX
DISTINCTCOUNT(<table>)
distinctcount = DISTINCTCOUNT('SLS Order Detials_Product
Master'[Image])
DAX CountBlank
COUNTBLANK(<column>)
DAX CountRows