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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
MagicMind
Advocate II
Advocate II

Bridge table vs 1 to 1 relationship

Fact Table 1 to 1 to Dim Entity where the join column between the 2 tables is the concat of the Transaction ID,EntityID and Snapshot :
Transaction ID EntityID Snapshot ColumnForJoin
1                     12          01012024 11201012024
2                     13          01012024 21301012024
3                     15          01012024 31501012024
1                     10          01022024 11001012024
5                     16          01022024 51601012024
7                     18          01022024 71801012024

and Dim Entity :

Entity ID Entity Label ColumnForJoin
12          A                   11201012024
13          B                    21301012024
15         C                     31501012024
10         D                     11001012024
16         E                      51601012024
18         F                      71801012024

 

or use a bridge table Bridge Entity where :


Transaction ID EntityID Snapshot
1                     12          01012024
2                     13          01012024
3                     15          01012024
1                     10          01022024
5                     16          01022024
7                     18          01022024

 

Fact Table 1 to many to Bridge Entity based on the Transaction ID for both tables
Dim Entity 1 to many to Bridge Entity based on the Entity ID for both tables
Dim Date 1 to many to Bridge Entity based on the snapshot for both tables

what is the best way ?

2 ACCEPTED SOLUTIONS
lbendlin
Super User
Super User

You should always aim for a Star Schema. Dimension tables controlling fact tables in 1:* single direction relationships.

 

1:1 relationships are usually an indication that the two tables should rather be combined.

View solution in original post

AmiraBedh
Super User
Super User

I agree with @lbendlin  about his advice.

In your case for if you want a bridge table there is a small correction in the relationship between Fact Table and Bridge Entity.

Even the Fact Table 1 to many to Bridge Entity based on the Transaction ID for both tables  won't be able to assure the unicity in this case.


Proud to be a Power BI Super User !

Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696

View solution in original post

2 REPLIES 2
AmiraBedh
Super User
Super User

I agree with @lbendlin  about his advice.

In your case for if you want a bridge table there is a small correction in the relationship between Fact Table and Bridge Entity.

Even the Fact Table 1 to many to Bridge Entity based on the Transaction ID for both tables  won't be able to assure the unicity in this case.


Proud to be a Power BI Super User !

Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696
lbendlin
Super User
Super User

You should always aim for a Star Schema. Dimension tables controlling fact tables in 1:* single direction relationships.

 

1:1 relationships are usually an indication that the two tables should rather be combined.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.