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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Merge Tables and add only rows that don't match first query

Hi there,

 

I have two tables A and B. A contains names and ID's of current and former employees. Table B contains only current employees. 

How can I merge these so that I get all information from Table B and names and ID's that don't match values in Table B from Table A?

 

TableA  TableB   
ID Name ID NameLocationTitle
1Max 1MaxPitManager
2Dave 2DaveNYAnalyst
3Tina 5CarlNYConsultant
4Cindy 6MikeNYAnalyst
       
       
       
TableC      
ID NameLocationTitleCurrent employee 
1MaxPitManageryes  
2DaveNYAnalystyes  
3Tina  no  
4Cindy  no  
5CarlNYConsultantyes  
6MikeNYAnalystyes  

 

 

I tried appending the tables but every time I try to remove the duplicates I remove the rows that have non blank values in Location and Title.

1 ACCEPTED SOLUTION
mahoneypat
Microsoft Employee
Microsoft Employee

Add a filter step to TableA to keep only the rows not in Table B. Shown below. Then append TableA to TableB to get your result.

 

mahoneypat_0-1647742070964.png

 

 

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

1 REPLY 1
mahoneypat
Microsoft Employee
Microsoft Employee

Add a filter step to TableA to keep only the rows not in Table B. Shown below. Then append TableA to TableB to get your result.

 

mahoneypat_0-1647742070964.png

 

 

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.