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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
challarajes82
New Member

Create relationship with duplicate values

Table 1, Table 2 and Table 3. Table 1 Col A values are there in Table 2 Col D & Table 1 Col B values are there in Table 3 Col F. While creating relationship from Table 1 Col A to Table 2 Col D it through an error as " You cant create relationship b/w these two columns because one of the columns must have unique values."

400565727812

These are Emp id 's ..40056 is the emp id of Mr. John at x location and 5727812 is the emp id of Mr. John at y location.

If there is a case like 

 

 5844808

Mr. Peter is there only y location he doesn't have any presence in x location.

 

I need to figure out respective timesheet hours for each location. Because of duplicate values (spaces in Col A) we are not able to create relationships. Is there any way to create a relationship without disturbing null values in Col A.

 

Col ACol B
400565727812
400265824960
 5844808
400206682456
400707748300
401418579674
401168579958
400698641880
400068641881
 8641883
400348641885
400838641890
400238641896
401268641900
401338641902
400968641903
400368641906
 8724484
 8759290
401728927885
401799075208
401779103880
401489248492
400159413296
401919539589
401909603935
401319607819
402869819773
401579953113
400439985248
4020610135515
4020710283765
4003110312927
 10385152
4010110390129
4000710430151
 10494417
 10504100
4023010838291
 10935299
4022811048208
4024311434183
4023711545951
4023211558252
4024211592590
4024911667068
4000911791433
4010611795195
 11813937
 11820039
4024111838266
4004711905631
4025611916950
4002911950228
4025912003626
4013412027900
4026112081304
4007512134235
4026412268980
 12378898
4026712451986
4003012496831
4028012540564
4028112543419
4027912548239
4028212579915
4011912677895
4028412724499
4010412747173

 

 

3 REPLIES 3
Icey
Community Support
Community Support

Hi @challarajes82 , 

Can you give me a sample of Col D? I can't reproduce your question for lack of it. And have you tried Many-to-Many relationship?

 

Best Regards,

Icey

 

 

Sorry for the late response. I haven't rued many to many.

 

 Below are three tables, one is Client loc data and another one is offshore location data and combined information data. I would like to check the discrepancy in hours at each location. so I'm trying to create a relationship with "combined table" col "Emp id -OL" to "Offshore location" col "Emp id -OL" &  "combined table" col "Emp id -CL" to "Client  location" col "Emp id -CL". while creating this its throwing an error stating that " you cant create relationship".

Combined table  Client Location Offshore Location
Table 1 Table 2 Table 3
Emp ID-OLEMP ID - CLName EMP ID - CLNamehours Emp ID-OLNamehours
400565727812John 5727812John40 40056John54
400265824960Pat 5824960Pat40 40026Pat40
 5844808John1 5844808John10 40020Pat136
400206682456Pat1 6682456Pat140 40070Nick35
400707748300Nick 7748300Nick40 40141Sam40
401418579674Sam 8579674Sam27 40116Ram40
401168579958Ram 8579958Ram28 40069chrsty40
400698641880chrsty 8641880chesty44 40006Carrie0
400068641881Carrie 8641881Carrie0 40034Nick236
 8641883Kirsten 8641883Kirsten40 40083Sam140
400348641885Nick2 8641885Nick240 40023Ram140
400838641890Sam1 8641890Sam140 40126chrsty135
400238641896Ram1 8641896Ram140 40133Carrie242
401268641900chrsty1 8641900chrsty140 40096kisrsten136
401338641902Carrie2 8641902Carrie242 40036Nick140
400968641903kisrsten1 8641903kisrsten136    
400368641906Nick1 8641906Nick136    

Hi @challarajes82 ,

I'm sorry to response late. Based on my test, you can only create 'Many-to-Many' relationship between "combined table" and "Offshore location".

Create relationship with duplicate values.png

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.