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

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

Reply
MiaZhao
Helper I
Helper I

merge queries but got more than 1 result

I have 2 tables. One is the contacts the other is the call records. I want to merge these 2 tables to see who called us most.

 

The problem is when I merge these 2 tables I got more than 1 mapping results. How can I just expand the first mapping result to the current table?

 

table A

numbercall dateduration
1231-Jan50s

 

table B

namenumber
A123
A1123
A2

123

 

 

result

 

numbercall datedurationexpanded row
1231-Jan50sA
1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @MiaZhao,

 

You are getting more than one result because you have on table B more than 1 line with the match to Table A so when you merge it will get the information from.

 

I don't know if this works but on table A do a group By and select the number and the aggregator MIN name this will give you only row A then just do the merge with that row.

 

group.gif

 

Regards,

MFelix


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



View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

 

If there are 3 names against the same number, then you obviously will get moe than 1 mapping record.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
MFelix
Super User
Super User

Hi @MiaZhao,

 

You are getting more than one result because you have on table B more than 1 line with the match to Table A so when you merge it will get the information from.

 

I don't know if this works but on table A do a group By and select the number and the aggregator MIN name this will give you only row A then just do the merge with that row.

 

group.gif

 

Regards,

MFelix


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



Thanks. Brilliant. It is what I want.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.