Generate DAX - Adds a relationship between two tables in a Power BI dataset within a specific workspace
Enter ID of the workspace for which the relationship is added.
Enter ID of an existing dataset
The requested API version
1.0
Model for creating relationships between tables.
A public property of type string that specifies the name of the 'from' table in the relationship.
A public property of type string that specifies the name of the 'from' column in the relationship.
A public property of type string that specifies the name of the 'to' table in the relationship.
A public property of type string that specifies the name of the 'to' column in the relationship.
A public property of type string that specifies the cardinality of the 'from' side of the relationship.
Many
Possible values: A public property of type string that specifies the cardinality of the 'to' side of the relationship.
One
Possible values: A public property of type boolean that specifies whether the relationship is active.
true
A public property of type string that specifies the cross-filter direction of the relationship.
Single
Possible values: A public property of type string that specifies the security filtering direction of the relationship.
Single
Possible values: POST /workspace/{workspaceId}/dataset/{datasetId}/addRelationship HTTP/1.1
Host:
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 224
{
"fromTableName": "text",
"fromColumnName": "text",
"toTableName": "text",
"toColumnName": "text",
"fromCardinality": "Many",
"toCardinality": "One",
"isActive": true,
"crossFilterDirection": "Single",
"securityFilteringDirection": "Single"
}
{
"message": "text"
}
Last updated