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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

remove duplicates

good morning everyone

I know that through Power Query we managed to combine two tables, however, I need the opposite way, where I have a fact table of hotel reservations with 34 million rows, and I have a table of changed hotel reservations where I made an EXCEPT query inside the bank SQL, and it only brings me changes of fact.

I would like to remove from the fact table (34 million rows), the reservations based on this table of "modified reservations", (where the reservations had modifications), and combine the fact table with the modified table avoiding me having to upload a fact than 34 million every day.

Is there any way to do this in PowerQuery?

4 REPLIES 4
v-jingzhang
Community Support
Community Support

Hi @Anonymous 

 

You can use Left-Anti when merging. After that, remove the merged table column. 

vjingzhang_0-1648712442332.png

 

Here is a similar thread

https://community.powerbi.com/t5/Desktop/Remove-rows-which-contain-data-in-another-Table/m-p/929743 

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

KNP
Super User
Super User

If I'm understanding you correctly, you can use either 'Left Anti' or 'Right Anti' when doing the merge to acheive this.

 

KNP_0-1648494856214.png

 

 

Have I solved your problem?
Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;).
xOIEmaj

If you found this post helpful, please give Kudos.
It gives me a sense of instant gratification and, if you give me Kudos enough times, magical unicorns will appear on your screen.
If you find my signature vaguely amusing, please give Kudos.
image
fabric-SUbadge
Proud to be a Super User!
Anonymous
Not applicable

Dude, it didn't work for what I need.

I would need the following;

= Table.RemoveMatchingRows(facReservas, {[ID= facChangesReservations[ID]]}, "ID")

I can generate the function using number, anything, but I can't insert the criterion, which is the ID of the table of modified/new reservations.

I don't understand what you mean, and perhaps I don't understand the original question.

You may need to provide more detail and examples.

 

"I would like to remove from the fact table (34 million rows), the reservations based on this table of "modified reservations","

 

This comment made me think that Left/Right Anti join may have been what you're looking for, but now when I re-read your post, I'm thinking you just need to setup incremental refresh.

 

It is open to too much interpretation, can you please provide further detail?

 

Have I solved your problem?
Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;).
xOIEmaj

If you found this post helpful, please give Kudos.
It gives me a sense of instant gratification and, if you give me Kudos enough times, magical unicorns will appear on your screen.
If you find my signature vaguely amusing, please give Kudos.
image
fabric-SUbadge
Proud to be a Super User!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.

Top Solution Authors