Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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?
Hi @Anonymous
You can use Left-Anti when merging. After that, remove the merged table column.
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.
If I'm understanding you correctly, you can use either 'Left Anti' or 'Right Anti' when doing the merge to acheive this.
| 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 ;). |
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 ;). |
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 10 | |
| 9 | |
| 8 | |
| 7 |