add_relationship_local
Create a Many-to-One relationship between two tables in an open Power BI Desktop model, linking fact and dimension tables. Set active status as needed.
Instructions
Tạo mối quan hệ Many-to-One giữa hai bảng trong mô hình Power BI Desktop đang mở (TOM).
Với thao tác modeling hàng loạt/phức tạp, ưu tiên MCP powerbi-modeling (Microsoft) nếu có.
from_table/from_column: phía NHIỀU (Many) — thường là bảng Fact.
to_table/to_column: phía MỘT (One) — thường là bảng Dim.
is_active: True = quan hệ active (mặc định).
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": {
"port": "<port>",
"model_id": "<model_id>",
"from_table": "<from_table>",
"from_column": "<from_column>",
"to_table": "<to_table>",
"to_column": "<to_column>"
},
"name": "add_relationship_local"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | ||
| model_id | Yes | ||
| to_table | Yes | ||
| is_active | No | ||
| to_column | Yes | ||
| from_table | Yes | ||
| from_column | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |