Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Dynamic Replace - Unable to get back values which do not require replacement

PKoya
8 - Asteroid

Hi All,

 

I am trying to create a dynamic replacement logic for a reconciliation dataset that I work on.

 

Essentially when I feed in the complete data, if the any of the Department/Teams which are contained in below table are required to be replaced.

 

E.g. If I select Level to correct as Team Name and Data to Correct as Finance, then I want Team Name - Finance Data to be replaced with Team Name - HR DataLevel to correct and Data to Correct will change and the Target Column and Replacement Value will change accordingly.

PKoya_0-1614581068294.png

 

Level to correct will have one of two values (Department Name and Team Name) and Data to Correct will also have one of two values (HR and Finance).

 

Also, this change will only be effective till the End Date. After the End Date passes, this change will no longer be required.

 

I have managed to arrived at dynamic Target Column and Replacement Value columns.

 

PKoya_1-1614581509031.png

 

I am not able to get the Expression right. The replacement is happening okay but the values which are not eligible for replacement are coming back as null.

 

PKoya_2-1614581619352.png

PKoya_3-1614581636609.png

 

Also, I am not sure how to make the Expression dynamic based on the changing conditions despite having tried multiple variations of IF and IIF formulas. Have not even thought about how to stop the change from happening once the End Date passes.

 

Any help here would be greatly appreciated.

1 REPLY 1
messi007
15 - Aurora
15 - Aurora

@PKoya,

 

Could you please check the attached workflow:

 

messi007_0-1614587984434.png

 

below the output:

 

messi007_1-1614588025658.png

 

Hope this helps!

Regards,

 

Labels