update_measure_dax
Update a measure's DAX expression in TMDL while preserving surrounding formatting, with a dry-run option to preview the proposed change before writing files.
Instructions
Update a measure's DAX expression in TMDL while preserving surrounding formatting.
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_name": "<measure_name>",
"expression": "<expression>"
},
"name": "update_measure_dax"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | No | Optional table name to disambiguate the measure. | |
| dry_run | No | When true, return the proposed ChangePlan without modifying files. Defaults to true. Set false to execute the write with post-write validation. | |
| workspace | No | Workspace identifier returned by list_workspaces (prefer workspace_id or unique name). Optional when the server is bound to a single workspace. | |
| expression | Yes | Replacement DAX expression. | |
| measure_name | Yes | Exact measure name to update. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||