update_visual_property
Set a visual's property in a closed Power BI report by targeting a JSON path under its config, locating the visual by title, name, or bound field, and writing the file back with the data model preserved.
Instructions
GENERAL offline report-visual editor: open a CLOSED .pbix, set ANY property at a JSON path UNDER a visual's singleVisual config, then write the .pbix back (DataModel preserved). Locate the visual by its config name, displayName, its visible TITLE (e.g. 'Chart Period'), or a bound field (Table.Field / table / field). property_path navigates under singleVisual and creates missing objects/arrays, e.g. 'objects.selection[0].properties.strictSingleSelect', 'drillFilterOtherVisuals', 'display.mode'. valueKind: auto (default = JSON if it parses, else string) | raw | json | string | literal | bool | number | color | text - literal/bool/number/color/text wrap the value as a Power BI formatting literal expr so a formatting-card property can be set by path. Returns the before/after value at that path. The .pbix must NOT be open in Power BI Desktop.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | page name or displayName | |
| pbix | Yes | absolute path to the .pbix (must be CLOSED in Power BI Desktop) | |
| value | Yes | the value to set | |
| valueKind | No | auto|raw|json|string|literal|bool|number|color|text | auto |
| propertyPath | Yes | JSON path under singleVisual, e.g. objects.selection[0].properties.strictSingleSelect | |
| visualIdOrTitle | Yes | visual to edit: config name, displayName, its visible TITLE, or a bound field |