OpenBI Docs Buy

Text.SplitAny

A text cut into a list of pieces wherever any of the given characters appears.

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

Syntax

Text.SplitAny(text as text, separators as text) as list
ParameterTypeDescription
texttextThe text to cut.
separatorstextEach character of this text is a separator on its own.

Returns

list. The pieces, without the separators.

Examples

Semicolons and commas

Text.SplitAny("Oslo;Bergen,Trondheim", ";,")
{"Oslo", "Bergen", "Trondheim"}

Text.Split, Splitter.SplitTextByAnyDelimiter, Text.ToList.

Last updated · OpenBI Studio 0.3.79