Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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?
User | Count |
---|---|
5 | |
4 | |
4 | |
2 | |
2 |
User | Count |
---|---|
8 | |
4 | |
4 | |
4 | |
3 |