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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors