Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

How to compare 2 columns from 2 table with Many to Many Relation Ship

Hello Experts,

Seeking your Tricks on to How to compare 2 columns from 2 different Tables which is having Many to Many relationship and the resultant table to show what are Matching and Not Matching in one Single Table.

 

Sample Data:

Anndy_0-1667116441342.png

 

 

Output/Resultant Table:

Item NoLine NoOrder NoTable A
Request Date
Table B
Request Date
Request Date
Match vs Not Match
Table A
Qty
Table B
Qty
Qty
Match vs Not Match

 

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

Relationship is created by Concatenated column of (OrderNo-ItemNo-LineNo) in both the tables.

 

Anonymous
Not applicable

Hi @Anonymous ,

 

There can only be one active relationship between two tables, please tell me which fields are the active relationship.

You may kindly refer to the similar post if it can help you:

Solved: Comparing two table columns which is having Many t... - Microsoft Power BI Community

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors