add_report_measure
Add a report-level DAX measure attached to a host table, ideal when the model can't be edited. Re-adding an existing name updates the measure.
Instructions
Add a REPORT-LEVEL measure (a DAX measure stored in the report, not the model - handy when you cannot edit the model). table = the host table it attaches to. Written into layout.config.modelExtensions (legacy best-known shape; confirm in Desktop). Re-adding the same name updates it.
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": {
"reportSessionId": "<reportSessionId>",
"table": "<table>",
"name": "<name>",
"daxExpression": "<daxExpression>"
},
"name": "add_report_measure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | measure name | |
| table | Yes | host table the measure attaches to | |
| formatString | No | optional format string, e.g. "#,0" or "0.0%" | |
| daxExpression | Yes | DAX expression | |
| displayFolder | No | optional display folder | |
| reportSessionId | Yes |