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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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 @v-stephen-msft ,

 

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

 

v-stephen-msft
Community Support
Community Support

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.