Add Relationship
add_relationshipCreates a relationship between two tables in a Power BI project by linking a MANY-side column to a ONE-side column using DAX-style references such as 'Sales[StoreId]'.
Instructions
Relate two tables in a project. from_column = MANY side, to_column = ONE side, DAX style like 'Sales[StoreId]'.
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": {
"pbip_path": "<pbip_path>",
"from_column": "<from_column>",
"to_column": "<to_column>"
},
"name": "add_relationship"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pbip_path | Yes | ||
| to_column | Yes | ||
| from_column | Yes | ||
| cross_filter | No | oneDirection |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||