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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sessionId": "<sessionId>",
"table": "<table>",
"column": "<column>",
"operation": "<operation>"
},
"name": "transform_column"
}
}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) |