pbi_set_power_query
Update or set the M expression for a table partition in Power BI. Optionally refresh the table after applying the expression.
Instructions
Write or update an M expression on a table partition.
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": {
"table": "<table>",
"m_expression": "<m_expression>"
},
"name": "pbi_set_power_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| m_expression | Yes | ||
| refresh_after | No | ||
| partition_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |