split_column
Split a text column into multiple new columns by delimiter, fixed positions, or specified lengths, and append the correct Table.SplitColumn M code to the table query.
Instructions
Power Query Split Column: split a text column into N new columns. Appends Table.SplitColumn (+ the matching Splitter.*) to the table's M query, emitting parts output columns named .1 .. .N. by = delimiter (arg is the delimiter, e.g. ","), positions (arg is comma-separated zero-based positions, e.g. "0,5"), or lengths (arg is comma-separated repeated lengths, e.g. "3,3"). parts is the number of output columns (default 2).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | Yes | delimiter | positions | lengths | |
| arg | Yes | the delimiter, the positions, or the lengths (see description) | |
| parts | No | number of output columns to produce (default 2) | |
| table | Yes | ||
| column | Yes | the column to split | |
| sessionId | Yes | ||
| partitionName | No | partition name (optional; defaults to the first partition) |