For each optimization

Hello everyone, I need help with the following case, I have two datatables, one consists of the invoices that were readied yesterday and another of a consolidated invoice that have been generated so far, what I need is that comparing those two datatables and starting from a unique number that each invoice has, I can obtain the invoices that I have yet to file
(The table of filed invoices has a column called status where it is indicated with the word “Status” that the invoice is already ok)
How can I get a table with the missing files to be filed?

I am using a for each row but with the amount of data that is handled it is taking a long time to give me the result

Hi @Juan_Esteban_Valencia ,

Could you post screenshot of both tables ? It will be easy to understand the schema of both tables.