Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Multiple relationships from same table (Star schema) in model.json

When multiple relations are created from the same table in a model.json file for data flow, they are not created automatically when creating a new Power BI desktop file.

This is the syntax from the Relationships section in the model file:

 

"relationships": [
{
"$type": "SingleKeyRelationship",
"fromAttribute": {
"entityName": "Sales",
"attributeName": "Month"
},
"toAttribute": {
"entityName": "Calendar",
"attributeName": "Period"
}
},
{
"$type": "SingleKeyRelationship",
"fromAttribute": {
"entityName": "Sales",
"attributeName": "What"
},
"toAttribute": {
"entityName": "Product",
"attributeName": "ProductID"
}
},
{
"$type": "SingleKeyRelationship",
"fromAttribute": {
"entityName": "Product",
"attributeName": "Fournisseur"
},
"toAttribute": {
"entityName": "Supplier",
"attributeName": "SupplierID"
}
}
]

 

Relations from Sales to Product and Calendar are not created.

Relation from Product to Supplier is.

When specifying only 1 relation on Sales, everything works fine.

 

Any ideas?

0 REPLIES 0

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.