rename_table
Renames a Power BI table and updates all references in DAX, M, and reports to prevent broken dependencies.
Instructions
Rename a table. With propagate=true (the default) every reference model-wide is rewritten too - quoted 'Table'[Col] and bare Table[Col] DAX forms across measures/calc columns/calc tables/RLS/calc items/KPIs, plus M query-name references (#"Old" and bare identifiers in partition M and shared expressions, the partition name kept in step) - atomically (one SaveChanges; any failure rolls everything back). When reportSource is given the report's bindings (From entities, projections, queryRefs, filters at all scopes, conditional-formatting/chrome, legacy Layout and PBIR) follow as well. propagate=false renames the object only. Sort-bys, hierarchies, relationships and translations carry over automatically in TOM either way.
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>",
"newName": "<newName>"
},
"name": "rename_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| newName | Yes | ||
| propagate | No | rewrite every DAX/M 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 |