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.
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. |