The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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 RequestNumber, Title, Status, Member ,ID and Comments.
RequestNumber | Title | Status | Member | ID | Comments |
123 | Test1 | Closed | *** | 1 | *** |
234 | Test2 | New | *** | 2 | *** |
456 | Test3 | Updated | *** | 3 | *** |
The other one is Excel.The columns are Number, Title, Date, RequestNumber, Status.
Number | Title | Date | RequestNumber | Status |
4 | Test1 | 123 | Closed | |
5 | Test2 | 234 | New | |
6 | Test3 | 456 | Updated | |
7 | Test4 | 678 | New |
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!
Solved! Go to Solution.
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.
You can do merge query with Inner join and then delete the additional column.
Then remove the additional column.
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?
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.
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.
User | Count |
---|---|
65 | |
61 | |
60 | |
53 | |
27 |
User | Count |
---|---|
181 | |
83 | |
68 | |
49 | |
46 |