cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

Re: Cannot create relationship between two columns.

Thank you ImkeF, 

 

Compleated that, converted everything to Uppercase in both tables and removed duplicated in Column 1 in Excel 2 'RULE_NAME', still no luck in getting them to connect.

Highlighted
Super User III
Super User III

Re: Cannot create relationship between two columns.

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

Highlighted
Regular Visitor

Re: Cannot create relationship between two columns.

Would it matter if a value in Column 1 is also in Column 2 of Excel 2? Not all the rules have a translation, so the rule is just repeated in the translation column. If I remove them might that help?

Highlighted
Regular Visitor

Re: Cannot create relationship between two columns.

Trim and Clean worked! 

 

Thank you so much, this has been driving me demented for weeks! 

 

Now to just get it to pull the english value and I'm all set!

 

Thank you ImkeF!

Highlighted
Super User III
Super User III

Re: Cannot create relationship between two columns.

That's good!

So what happened here is that your unique values-to-be haven't been unique, but contained either blanks (trim) or non-printable characters (clean).

So you've lost some rows in your lookup-table here and might have to check if this causes problems now. What remove duplicates does is to keep the first row it finds. 

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

Helpful resources

Announcements
June 2020 Community Highlights

June 2020 Community Highlights

Featured community members, changes to the Community, and more! Read up on recent Power BI community news.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors