We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hello, I'm new to PowerBI and have some problem with table relationship. The table relationship concept in PowerBI seems different with the one in common DBMS.
Suppose I have these simple tables:
Branch
branchid
branchname
Customer
branchid
cutomerid
customername
SalesPerson
branchid
salespersonid
salespersonname
Transaction
salespersonid
customerid
transactionid
transactiondate
qtysold
Branch table has relation with Customer and SalesPerson table on branchid column,.
Customer table has relation with Transaction table on customerid column
SalesPerson table has relation with Transaction table on salespersonid column
I can only make relationship from Transaction table to either Customer or SalesPerson, because ambiguity.
When I filter branch using slicer, only one of Customer or Salesperson got filtered according to which relationship is active.
Is there any workaround to this situation? Thanks.
This is a good example of how the snowflake schema differs from the star schema. In a common DBMS, a snowflake schema is used. But in data analytics, a star schema is a better choice. The approach I would take is to add branchname to tables Customer and SalesPerson (and remove branchid from these two tables). You can then remove the Branch table. The tables Customer and SalesPerson have a 1:* relationship with Transaction, enabling you to filter using any of the fields in Customer and SalesPerson (including branchname).
Proud to be a Super User!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 57 | |
| 38 | |
| 33 | |
| 19 | |
| 16 |
| User | Count |
|---|---|
| 68 | |
| 66 | |
| 41 | |
| 34 | |
| 24 |