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?

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
May 2020 Community Highlights

May 2020 Community Highlights

It’s time for another PBI Community recap!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

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.

Galleries

Galleries

Looking for inspiration on how to present your data? Need instructional videos? Check out our Galleries!

Top Solution Authors