duplicate_column
Duplicates a column in a Power BI table under a new name by adding a Power Query step. Specify the table, column, and new name to copy the data.
Instructions
Power Query Duplicate Column: copy a column under a new name. Appends Table.DuplicateColumn to the table's M query.
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>",
"newName": "<newName>"
},
"name": "duplicate_column"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| column | Yes | the column to duplicate | |
| newName | Yes | the new (duplicate) column name | |
| sessionId | Yes | ||
| partitionName | No | partition name (optional; defaults to the first partition) |