Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: sicmateHi guys,
Hoping someone may be able to point me in the right direction with this. I'm pulling the last 20 days worth of data from a one database and appending it to an excel file. I want to do is look at what the max date is in the excel file, and then filter the database output to only bring MaxDate + 1 (ImportStartDate) to yesterday (ImportEndDate) - essentially only bringing in data that doesn't already exist in the excel file.
I've managed to use the agg-ex node to generate ImportStartDate and ImportEndDate in correctly (in 1 row), however I'm having issues filtering the data from the database based on this criteria.
I've tried using the x-ref and filter by group nodes separately to achieve this but have had no luck. I've also tried messing around with making the import criteria a Parameter and using that in a filter node but I couldn't get it to work (not even sure if parameters can be used as variables?). I'm guessing there might be an easy way to do this that I'm missing so any help would be appreciated.
Thanks in advance.