For which column you have written the logic can you please let me know from the above screen shot.
I guess for posting date column.Now your invoice date is a characteristic.Did you convert it into Kf with the help of formula variable with replacement path ?
I assume that when invoice date is blank then you need to populate invoice week and in else part invoice date only.Please correct if my understanding on this is wrong.
Regards,
AL