model_add_relationship
Add a new relationship between two tables in a Power BI semantic model by specifying source and target columns, cardinality, and filtering behavior.
Instructions
Add a relationship to relationships.tmdl.
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>",
"relationship": "<relationship>"
},
"name": "model_add_relationship"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | ||
| relationship | Yes | ||
| dryRun | No |