set_partition_m
Replace a Power BI table's Power Query M partition expression to repoint it at new source data. Provide the table, the M let-expression, and optionally a partition name.
Instructions
Replace a table's Power Query (M) partition expression - e.g. to repoint a table at new source data.
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>",
"m": "<m>"
},
"name": "set_partition_m"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| m | Yes | the full M let-expression | |
| table | Yes | ||
| sessionId | Yes | ||
| partitionName | No | partition name (optional; defaults to the first partition) |