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

Joining tables using calculated column

I am trying to join two tables T1 and T2.

 

T1 has a calculated column which is concatentation of fields Type and Age.

T2 comes from excel and had the fields Type and Age concatentation performed in excel prior to loading.

 

When I try to join, get error where it believes relationship is many to many.

Can pull individual fields into Power BI and join back to T1 w/o issues.

Also spot checked the data and do not see any issues with T2 i.e. concatenated field is unique.

 

Any assistance would be appreciated.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Phil_Seamark Super Contributor
Super Contributor

Re: Joining tables using calculated column

Blanks and nulls can trip you up.  Every single value/row in the table on the 1 side of the 1:Many must be unique.   So if you can have blank values in this column and there are more than 1 row with a blank column, you will fail this referential integrity test.


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

1 REPLY 1
Phil_Seamark Super Contributor
Super Contributor

Re: Joining tables using calculated column

Blanks and nulls can trip you up.  Every single value/row in the table on the 1 side of the 1:Many must be unique.   So if you can have blank values in this column and there are more than 1 row with a blank column, you will fail this referential integrity test.


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

Helpful resources

Announcements
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Ask Amanda Anything Q&A

Ask Amanda Anything Q&A

Learn the answers to some of the questions asked during the Amanda Triple A event.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Users Online
Currently online: 305 members 3,691 guests
Please welcome our newest community members: