cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
AV_04
Helper I
Helper I

Power BI Help

Hi Team,

 

I have these two tables:

ProductCodeDatePositionIDCommon Column
A16/3/2023112A-1-6/3/2023-1-12
C36/4/2023213C-3-6/4/2023-3-32
S26/5/2023r14S-2-6/5/2023-2-22
Q16/6/2023115F-1-6/6/2023-1-12
D56/7/2023216D-5-6/7/2023-5-52

 

 

 

ProductCodeDatePositionIDCommon Column
A16/3/2023112A-1-6/3/2023-1-12
C36/4/2023213C-3-6/4/2023-3-32
X26/5/2023r14X-2-6/5/2023-2-22
Q16/6/2023115Q-1-6/6/2023-1-12
D56/7/2023216D-5-6/7/2023-5-52

 

I want to find out the matching count by comparing the common columns, Could anyone help me with the above requirement, this is a mock data, but when i tried to create a relationship it comes as many to many, I am not sure how to move forward.

 

Thank you!

1 ACCEPTED SOLUTION
bharath_v
Resolver I
Resolver I

Hi @AV_04 

 

If the columns are same in both tables, you can merge the tables based on the "Product" which seems to be unique in each table. 
You can go to "Transform Data" -> Under Home select "Merge Queries" and select as below:

 

bharath_v_0-1678443571840.png

This produced me the desired output as below:

bharath_v_1-1678443616494.png

Hope this works for you!

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

 

View solution in original post

4 REPLIES 4
bharath_v
Resolver I
Resolver I

Hi @AV_04 

 

If the columns are same in both tables, you can merge the tables based on the "Product" which seems to be unique in each table. 
You can go to "Transform Data" -> Under Home select "Merge Queries" and select as below:

 

bharath_v_0-1678443571840.png

This produced me the desired output as below:

bharath_v_1-1678443616494.png

Hope this works for you!

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

 

Hi Bharat,

Is it possible to do in DAX? The tables are updated and are of different structure now. But the common column remains the same. I just want the count of matching and non matching common column from both the tables. could you help me here?

thank you very much

AV_04
Helper I
Helper I

Hi @amitchandak could you please help me on this?

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

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

Top Solution Authors
Top Kudoed Authors