OpenBI Docs Buy

Text.End

The last characters of a text.

Group: Text and characters. Power Query M has it too: a query that uses it is written as in Power BI.

Syntax

Text.End(text as nullable text, count as number) as nullable text
ParameterTypeDescription
textnullable textThe text to work on; null gives null.
countnumberHow many characters to keep.

Returns

nullable text. The last characters; the whole text when it is shorter than the count.

Examples

The postcode at the end

Text.End("NO-0150", 4)
"0150"

Text.Start, Text.Middle, Text.AfterDelimiter.

Last updated · OpenBI Studio 0.3.79