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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Compare Data from different data source and delete the difference

Hi I would like to use the Power Query to delete the difference between 2 different data sources.

 

One dada source is Share point list. The columns are RequestNumberTitle, Status, Member ,ID and Comments.

RequestNumberTitle Status MemberIDComments
123Test1Closed***1***
234Test2New***2***
456Test3Updated***3***

The other one is Excel.The columns are Number, Title, Date, RequestNumberStatus.

NumberTitle DateRequestNumberStatus
4Test1 123Closed
5Test2 234New
6Test3 456Updated
7Test4 678New

 

I would like to compare them and the key column is RequestNumber, then delete the different row from Excel.

Could you please kindly tell how to set the Power Query? Thank you very much!

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @Anonymous ,

 

In Power Query, you can use merge to compare a column in one table with the column in another. The innerjoin type will keep only those rows that are found in the other table. Please see attached pbix for reference.

danextian_1-1678255091356.png

 

 

danextian_0-1678255067943.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

5 REPLIES 5
SandeepSugandh
Frequent Visitor

You can do merge query with Inner join and then delete the additional column.

SandeepSugandh_0-1678255239429.png

Then remove the additional column.

SandeepSugandh_1-1678255303032.png

 

Anonymous
Not applicable

HI @SandeepSugandh Thank you very much.

Could you please kindly tell which Join Kind I should select if I only want to get the difference rows?

danextian
Super User
Super User

Hi @Anonymous ,

 

In Power Query, you can use merge to compare a column in one table with the column in another. The innerjoin type will keep only those rows that are found in the other table. Please see attached pbix for reference.

danextian_1-1678255091356.png

 

 

danextian_0-1678255067943.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
Anonymous
Not applicable

HI @danextian Thank you very much.

Could you please also kindly tell which Join Kind I should select if I only want to get the difference rows?

Use Left Anti. This should keep only the rows that are in the first table. If a row exists in the other table, then that will be filtered out.

 

danextian_0-1678348656999.pngdanextian_1-1678348673002.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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