add_rectangle
Add a rectangle to a Power BI Report Builder report. Optionally move existing body items into the rectangle while preserving their on-screen positions.
Instructions
Add a to /. With no contained_items the rectangle is empty (a visual frame). With contained_items=[name1, name2, ...], each named body item is MOVED into the rectangle's and its / recalculated so the on-screen position is preserved. Refuses on duplicate name or if any contained_item isn't in /. Returns {name, kind: 'Rectangle', moved}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | Yes | ||
| left | Yes | ||
| name | Yes | ||
| path | Yes | ||
| width | Yes | ||
| height | Yes | ||
| contained_items | No | Optional names of existing body items to move into the rectangle. Omit or pass [] for an empty rectangle (visual frame). |