rename_column
Renames a column in a Power BI model, rewriting all DAX references and optional report bindings atomically with rollback on failure.
Instructions
Rename a column. With propagate=true (the default) every DAX reference model-wide is rewritten too - measures, calculated columns/tables, RLS filters, calc items, format-string/detail-rows/KPI expressions - atomically (one SaveChanges; any failure rolls everything back), and when reportSource is given the report's bindings (projections, queryRefs, filters at all scopes, sorts, conditional-formatting/chrome, on both legacy Layout and PBIR) are rewritten as well. propagate=false renames the object only, leaving references by the old name in M/DAX untouched.
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": "rename_column"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| column | Yes | ||
| newName | Yes | ||
| propagate | No | rewrite every DAX reference model-wide (and report bindings when reportSource is given); false = rename the object only | |
| sessionId | Yes | ||
| reportSource | No | optional report to rewrite: a reportSessionId (open_report), a pbirSessionId (read_pbir), or a PBIR .pbix/PBIP folder path |