Hello,
I have been trying to get to a desired output data from 2 different data sources/files. I have tried Join and then used Union tool to merge the data sets, but if I only do a union of the left join and the join the True anchor of the filter containing the condition, then the accounts in the Input1 where the condition is not met get dropped off. On the other hand, if I use an Union tool to bring both True and False anchor data from Input2, it brings in all the records from Input2 that I do not want in the output file.
I have attached 2 excel file with Input1, Input2 and the Input file containing the desired output.
The condition that needs to be applied is:
If the PROC_TS in Input2 is >= ACCT_CLOSE_DT in Input1, then bring RWARD_QT and PROC_TS from Input2 to Input1 in the output file
If not ( PROC_TS in Input2 is <ACCT_CLOSE_DT), then bring the RWARD_QT and PROC_TS from Input2 where the PROC_TS is closest to the ACCT_CLOSE_DT in Input1
Any help would be greatly appreciated!
Thank you