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
Anonymous
Not applicable

Relationship model broken?

Hi all,

I've been trying to figure this out for a while now. I am not understanding why the relationship between two tables with a key column only works for certain values.

Please see below:

I have 2 tables one call capability and one called plant key. plant key table will contain the unique values of all the plants. capability will have at least 2 columns where plant name is one of them:

This table below is my plant key

issue 2.JPG

The table below first 2 columns are from the table capability and the last column is from plant key:

issue 1.JPG

issue 3.JPG

as you can see i have configured it to 1 to many relationship which is correct

 

so my question is, why is it power bi only selectively relates certain values from my key table to others? it should not be the case in my opinion.

 

Edit: seems like I needed to trim the columns to remove any whitespaces or non printable characters which seemed to fix most of the problem except one:

issue 3.JPG

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi,

 

Have you tried to "TRIM" or "CLEAN" your columns in Power Query ?

 

Regards,

 

Robin

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi,

 

Have you tried to "TRIM" or "CLEAN" your columns in Power Query ?

 

Regards,

 

Robin

Anonymous
Not applicable

Hi @Anonymous ,

Thanks it fixed it

kudos to you

Anonymous
Not applicable

Glad to hear!

 

Thank you Sir 🙂


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.