cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ADRICHECKIN
Frequent Visitor

Tables relation 1 to many

Hi team,

 

Want to make a relation between 1 to many from Table_B to Table_A.

In TABLE_B there are duplicated values.

 

How can I detect this duplicated values from Table_B? ( real table has many rows..)

Any other solution?

 

 

TABLE A TABLE B
CLIENTORDERREFREVEN CLIENTORDER
AP100XX100 AP100
AP100ZZ110 AP101
AP101XX120 BA102
AP101YY130 BA102
BA102BB140   
BA102CC150   

 

thanks,

1 ACCEPTED SOLUTION
amitchandak
Super User IV
Super User IV

@ADRICHECKIN , Delete duplicate as suggest by @MFelix .

 

Also you need a concatenated column in both tables to join

 

Key = [Client] & "-" & [Order]



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

3 REPLIES 3
Icey
Community Support
Community Support

Hi @ADRICHECKIN ,

 

Is this problem solved?

 

If it is solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

 

If not, please let me know.

 

 

Best Regards,

Icey

amitchandak
Super User IV
Super User IV

@ADRICHECKIN , Delete duplicate as suggest by @MFelix .

 

Also you need a concatenated column in both tables to join

 

Key = [Client] & "-" & [Order]



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

MFelix
Super User III
Super User III

Hi @ADRICHECKIN,

 

On the query editor select all row from table b and remove duplicates that should clean the information. 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
User Groups Public Preview

Join us for our User Group Public Preview!

Power BI User Groups are coming! Make sure you’re among the first to know when user groups go live for public preview.

March Update

Check it Out!

Click here to read more about the March 2021 Updates!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.