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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| measure | Yes | ||
| model_label | No | ||
| new_expression | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |