Splitter.SplitTextByLengths
This topic applies to the Power Query Formula Language which can be used with Power Query and Power BI Desktop to build queries that mashup data. See the list of function categories.
Returns a function that splits text according to the specified lengths.
Splitter.SplitTextByLengths(lengths as list) as function
| Argument | Description |
|---|---|
| lengths | The lengths to split on. |
- Each item in lengths should be a non-negative number indicating the number of characters to use for each item. SplitTextByLengths works by computing a set of ranges by adding each subsequent length to compute the next position, and delegating to SplitTextByRanges. The list returned will have the same cardinality as that of the positions.
Show: