add_dynamic_title_measure
Create a dynamic measure for Power BI visual titles using SELECTEDVALUE on a column, with a fallback label and optional template. Bind it to a title to reflect user selections.
Instructions
Author a DYNAMIC TITLE text measure: SELECTEDVALUE over a column with an All/multiple fallback, optionally wrapped in a template ({value} is the placeholder). e.g. column Dim_Product[Category], template "Sales - {value}". Then bind it to a visual title with bind_dynamic_title (report side).
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": {
"sessionId": "<sessionId>",
"homeTable": "<homeTable>",
"measureName": "<measureName>",
"column": "<column>"
},
"name": "add_dynamic_title_measure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| column | Yes | the column whose selection drives the title, e.g. Dim_Product[Category] | |
| allLabel | No | label when not a single selection (default 'All') | |
| template | No | title template with {value} placeholder (optional; omit for the bare value) | |
| homeTable | Yes | home table for the new measure | |
| sessionId | Yes | ||
| measureName | Yes | the new measure's name, e.g. Page Title |