Splitter.SplitTextByWhitespace

Splitter.SplitTextByWhitespace is a Power Query M function that splits text into a list at whitespace. The function returns a list of text segments after applying the whitespace-based splitting.

Compatible with: Power BI Service Power BI Desktop Excel Microsoft 365

Syntax

Splitter.SplitTextByWhitespace( optional quoteStyle as nullable number ) as function

Description

Returns a function that splits text into a list of text at whitespace.

Examples

Split the input by whitespace characters, treating quotes like any other character.

// Output: {"a", "b", "c"}
Splitter.SplitTextByWhitespace( QuoteStyle.None )( "a b#( tab )c" )

Used by

While the Splitter.SplitTextByWhitespace function can be used on its own, it is also used by the following functions:

Other functions related to Splitter.SplitTextByWhitespace are:

BI Gorilla Youtube Channel

Last update: November 17, 2023 | Contribute » | Contributors: Rick de Groot
Microsoft documentation: https://learn.microsoft.com/en-us/powerquery-m/splitter-splittextbywhitespace
© 2023 BI Gorilla. All rights reserved. Content derived from Microsoft documentation is property of Microsoft Corp.