Text.Split

Text

Splits a text value into a list of text values using a specified separator.

Examples on this page use shared sample tables. View them to understand the input data before reading the examples below.

Syntax

Text.Split(text as text, separator as text) as list

Parameters

NameTypeRequiredDescription
texttextYesThe text value to split.
separatortextYesThe delimiter text to split on.

Return Value

listA list of text values produced by splitting the input text at each occurrence of the separator.

Remarks

Text.Split divides a text value at every occurrence of the separator, returning a list. This is useful for extracting parts of structured text — for example, splitting a full name into first and last names, or splitting a delimited string into individual values.

For more advanced splitting (e.g., splitting by any of several delimiters, or by character transitions), use the Splitter functions.

Examples

Example 1: Split full names into first and last

Table.AddColumn(
    Table.AddColumn(
        Table.SelectColumns(Table.FirstN(Employees, 3), {"FullName"}),
        "FirstName", each Text.Proper(Text.Split([FullName], " "){0}), type text
    ),
    "LastName", each Text.Proper(Text.Split([FullName], " "){1}), type text
)
Result
FullName
FirstName
LastName
1alice smithAliceSmith
2BOB JONESBobJones
3Charlie BrownCharlieBrown

Compatibility

Power BI Desktop Power BI Service Excel Desktop Excel Online Dataflows Fabric Notebooks