update_measure_dax
Update a measure's DAX expression in Power BI, validating the new formula and requiring explicit confirmation before saving.
Instructions
Write a new DAX expression for a measure. MODIFIES THE MODEL.
Read-only is the default everywhere else in this server; this is the one exception, and it is
opt-in twice over: the caller must pass confirm=True, and the user needs write access
(Contributor plus a read/write XMLA endpoint). Always show the user the current expression
with show_measure and get their agreement before calling this.
The tabular engine validates the DAX, so an invalid expression is rejected rather than saved.
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": {
"measure": "<measure>",
"new_expression": "<new_expression>"
},
"name": "update_measure_dax"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| measure | Yes | ||
| model_label | No | ||
| new_expression | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |