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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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