update_dataset_query
Replace the DAX query of a dataset in a Power BI paginated report. Optionally preserve field names to keep existing references valid.
Instructions
Replace the DAX command text of a named dataset. The full DAX expression is accepted verbatim; empty bodies are rejected. Optional alias_strategy='preserve_field_names' positionally rewrites cells to the new DAX columns while keeping existing identifiers — so Fields!X.Value references in expressions keep resolving.
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": {
"path": "<path>",
"dataset_name": "<dataset_name>",
"dax_body": "<dax_body>"
},
"name": "update_dataset_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| dax_body | Yes | Full DAX (e.g. EVALUATE TOPN(10, 'Sales')). | |
| dataset_name | Yes | ||
| alias_strategy | No | When 'preserve_field_names', positionally remap <DataField> cells to the new DAX column list. |