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

im not able to create relationship between two unique colomun.

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

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
4 REPLIES 4
gckcmc
Resolver I
Resolver I

I think you've got duplicate values in "column A"....the numerical ones might be unique, but your table also shows blanks in Column A.  That can be the duplicate issue.  I would filter column A, to remove the blank rows, and also if needed, select the column and remove duplicates before then trying to create the relationships.

Thanks for the reply,

 

But in my case col a value associated with Col b Value. So i cant delete spaces in col A.

 

Is there any other way 

Well you have cases where there is a blank in Column A, which ties to multiple values in Column B.  For example:

400368641906
 8724484
 8759290

 

I'm not sure how you have a relationship for A vs B when A is blank and B has different values.

 

I would suggest creating unique values for A, which can be done by changing the blanks, or removing the rows which are blank.  That's key to getting your relationships established.  This is why you're getting an error, the system doesn't know what to do with these cases (blank plus multiple column B choices)

Yeah, my case little different .

Col A values and Col B values are assigned to each value.

For ex : 

400565727812
400265824960

 

These are Emp id 's ..40056 is emp id ohn 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.

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.