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
Lulaz
Regular Visitor

Cannot create relationship between two columns.

Hi,

 

I have two Excel tables, one with the master data and one with translations for rule violations.

 

In Excel 1, I have a colume that lists the error causeing the load violation in each individual report uploaded to a repository. These might be repeated throughout the report as one upload might have an error 'WMAC03_IM_CR_MSEG_LIFNR' occuring 25 times in the file. A separate report might have that error 62 times and so on.

 

I then have Excel 2 listing the 'English' translation of these errors. eg. 'WMAC03_IM_CR_MSEG_LIFNR' is translated to 'Assign the correct Vendor number to this cell.' in both files I have RULE_NAME as the error code listed.

 

In my dashboard, I want BI to show the 'English' Translation if it sees a certain error listed.

 

I have tried to link these two files but I get 'You Can't create a Relationship between these two columns bacause one of the columns must have Unique values'. I have double / tripple checked, removed duplcates from the excel and ran a quirie in BI to remove duplicates from the RULE_NAME feild in Excel 2 and none are there. So the Excel 2 is made of uniquie values in Colume 1. There is also no blanks or Nulls I can see.

 

Any Ideas how i can link the two feilds?

 

Thanks

1 ACCEPTED SOLUTION

Hm, that's a bit strange.

Then trim and clean the column (s in both tables) as well - before removing duplicates. You find these commands under the lowercase.

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

View solution in original post

14 REPLIES 14

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.