Text functions - Profitbase/PowerBI-visuals-FinancialReportingMatrix GitHub Wiki

Function Description
CONCAT(...text) Concatenates its arguments. CONCAT("a","b","c") returns "abc".
SUBSTRING(input, start[, length]) Returns part of a string. SUBSTRING("Hello", 1, 2) returns "el".
SPLIT(input, delimiter) Splits a string into an array. SPLIT("Hi, everyone", ",") returns ['Hi', ' everyone'].
LEFT(...) Returns characters from the left side of a string.
LEN(...) Returns the length of a string.
LOWER(input) Converts text to lowercase.
REPLACE(...) Replaces matching text.
RIGHT(...) Returns characters from the right side of a string.
TRIM(input) Removes leading and trailing whitespace.
UPPER(input) Converts text to uppercase.
TONUMBER(value) Converts text to a number. Returns null when conversion is not possible.
NEWLINE() Returns a newline character.
TOSTRING(value) Converts a value to text.
TOSTRING(value, formatString) Converts a value to text using the visual's Power BI-compatible formatter.