transform_column
Transform a column in a Power BI table by applying a scalar operation—such as lowercasing text, rounding numbers, or extracting date parts—and update the underlying Power Query M code.
Instructions
Power Query single-column transform: apply a scalar function to a column in place. Appends Table.TransformColumns to the table's M query. operation = (text) upper, lower, trim, clean, proper, length; (number) round, abs, floor, ceiling, sign, sqrt; (date) year, month, day, quarter, weekofyear, dayofweek, startofmonth, endofmonth, startofyear, endofyear, monthname, dayname.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| column | Yes | the column to transform | |
| operation | Yes | the operation (see description for the supported set) | |
| sessionId | Yes | ||
| partitionName | No | partition name (optional; defaults to the first partition) |