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).
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 |