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
Rate
Helper III
Helper III

Wrong Data relationship - Text

Hello!

 

I have two tables connected, both sharing a column with a text string code for identifying products. THe weird thing is Power BI does not match the codes correctly. Some it does, other it doesn't. 

 

Any thoughts where I'm doing something wrong?

 

Thanks a lot!!

 

 

Some are correct, some are not...Some are correct, some are not...Relationship.JPG

1 ACCEPTED SOLUTION
v-yuezhe-msft
Employee
Employee

@Rate,

Does the Maestro-Cigarillos table contain all the possible ID_Maestro_Cigarillos values of Cuestionarios-Previsio table? Could you please share sample data of the two tables so that I can test?

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-yuezhe-msft
Employee
Employee

@Rate,

Does the Maestro-Cigarillos table contain all the possible ID_Maestro_Cigarillos values of Cuestionarios-Previsio table? Could you please share sample data of the two tables so that I can test?

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello Lydia,

 

Really grateful for your answer. I kept looking into the problem and there was an issue with the underlying tables that was generating the mismatch between ID_Maestro_CIgarrillos. It is solved now! 

 

Thanks a lot!

Greg_Deckler
Super User
Super User

So, a common issue with this is beginning or ending spaces or capitalization. Doesn't look like the latter is the issue so I would right click your columns in your queries and do a Trim and a Clean and see if you get better matching.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hello Greg, 

 

Thanks a lot for the advice, but, in my case, Trim and Clear did not solve my issue. Any other thoughts?

 

Thanks dearly!

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.