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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Will2023
New Member

Table Relationship

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.

1 REPLY 1
DataInsights
Super User
Super User

@Will2023,

 

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





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.