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
ChrisR22
Helper III
Helper III

Many-to-Many Relationship Problem

Hello,

 

I have several databases with employees names in different arrangements (First Last, Last First, First Letter Last Name, etc) and I am attempting to unify them all under a single index (First Last) so that I can simply search that name across all databases.

 

What I have done is created a table that has the desired search name ("Employee Name"), as well as a name column from every single database with the name variation on the same line as it.

 

Name Table:

Employee NameDatabase 1 NameDatabase 2 NameDatabase 3 NameDatabase 4 Name
John SmithJsmithSmith, John Smith, John (12345)
Jane Doe Doe, JaneJane DoeDoe, Jane (54321)
Tom BradyTbrady Thomas Brady 
Mike JordanMjordanJordan, MichaelMichael JordanJordan, Michael (23232)

 

Database 1

Column 1NameColumn 3Column 4
xJsmithxx
xBbondsxx
xTbradyxx
xMjordanxx
xWgretzkyxx

 

Database 2

Column 1Column 2NameColumn 4
xxSmith, Johnx
xxDoe, Janex
xxJames, LeBronx
xxJordan, Michaelx
xxShakespeare, Williamx
xxPitt, Bradx

 

As you can see, there are no duplicates in the Name Table for the columns related to database 1 and 2, there are however null values because those employees do not appear in database 1 or 2.

As you can see there are also a few unique values in databse 1 and 2 because those employees are not relevant and I do not wish to include them in my Name Table.

 

When I attempt to create relationships between each of these databases via their associated columns,

ex. Name > Database 1 Name

it only allows me to create many-to-many relationships. I am confused because there are unique values in the database columns (wgretzky; Pitt, Brad), but no unique values in that associated column in the Name Table; would that not constitute a Many-to-One relationship from Database to Name Table? Am I missing something, are the null spaces causing this issue?

 

 

On another note, if this is not the proper approach to create a unified naming system that can be utilized by a slicer to search common aliases across multiple tables, then please, I am open to other suggestions for methods.

2 REPLIES 2
amitchandak
Super User
Super User

@ChrisR22 , Because the join column has a blank value. Change it from many to many single direction from Table to database?

 

Or fill null values with Employee Name

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hey @amitchandak , I'm not sure I understand your first instruction, or was that a question?

I am not able to fill those null values in the Name Table with values because in many cases there aren't values because the people are not present in the databases.

 

Do you have a workaround, or another method to establish a Common Alias Table that can be used in the manner in which I described previously?

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.