move_column
Move a column in a Power Query table to the start, end, before, or after another column, updating the M query with the new order.
Instructions
Power Query Move Column: reposition a column. Appends Table.ReorderColumns with the computed order to the table's M query. position = start | end | before | after. For before/after, refColumn is required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| column | Yes | the column to move | |
| position | Yes | start | end | before | after | |
| refColumn | No | the reference column (required for before/after) | |
| sessionId | Yes | ||
| partitionName | No | partition name (optional; defaults to the first partition) |