Text Functions Flashcards
EXACT(text1,text2)
Compares two text strings and returns TRUE if they are exactly the same, otherwise returns FALSE. EXACT is case-sensitive but ignores formatting differences. EXACT is case-sensitive
CONCATENATEX(table, expression[, delimiter [, orderBy_expression [, order]]…])
Concatenates the result of an expression evaluated for each row in a table.
VALUE(text)
Converts a text string that represents a number to a number.
UPPER (text)
Converts a text string to all uppercase letters.
FORMAT(value, format_string[, locale_name])
Converts a value to text according to the specified format.
LOWER(text)
Converts all letters in a text string to lowercase.
COMBINEVALUES(delimiter, expression, expression[, expression]…)
Joins two or more text strings into one text string. The primary purpose of this function is to support multi-column relationships in DirectQuery models. See Remarks for details.
CONCATENATE(text1, text2)
Joins two text strings into one text string.
TRIM(text)
Removes all spaces from text except for single spaces between words.
REPT(text, num_times)
Repeats text a given number of times. Use REPT to fill a cell with a number of instances of a text string.
REPLACE(old_text, start_num, num_chars, new_text)
REPLACE replaces part of a text string, based on the number of characters you specify, with a different text string.
SUBSTITUTE(text, old_text, new_text, instance_num)
Replaces existing text with new text in a text string.
MID(text, start_num, num_chars)
Returns a string of characters from the middle of a text string, given a starting position and length.
UNICODE( Text )
Returns the number (code point) corresponding to the first character of the text.
LEN(text)
Returns the number of characters in a text string.
SEARCH(find_text, within_text[, [start_num][, NotFoundValue]])
Returns the number of the character at which a specific character or text string is first found, reading left to right. Search is case-insensitive and accent sensitive.
LEFT(text, num_chars)
Returns the specified number of characters from the start of a text string.
FIND(find_text, within_text[, [start_num][, NotFoundValue]])
Returns the starting position of one text string within another text string. FIND is case-sensitive.
UNICHAR(number)
Returns the Unicode character referenced by the numeric value.
RIGHT(text, num_chars)
RIGHT returns the last character or characters in a text string, based on the number of characters you specify.
FIXED(number, decimals, no_commas)
Rounds a number to the specified number of decimals and returns the result as text. You can specify that the result be returned with or without commas.