model_add_measure
Add a measure to an existing TMDL table in a Power BI project. Define the measure name and DAX expression to extend model calculations.
Instructions
Add a measure to an existing TMDL table.
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": {
"projectPath": "<projectPath>",
"tableName": "<tableName>",
"measureName": "<measureName>",
"expression": "<expression>"
},
"name": "model_add_measure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | ||
| tableName | Yes | ||
| measureName | Yes | ||
| expression | Yes | ||
| formatString | No | ||
| dryRun | No |