Hi,
I'm using a Dynamic Replace tool to replace a dummy value for SPA_M and SPA_F with the date (in the UK) that the person is entitled to receive their state pension. I'm using the attached Excel file as the source for the R anchor:
I'm having 2 different issues:
1. My expressions seem to be too complex for Alteryx to read in:
If the replacement expression is complicated, e.g. DateTimeAdd(DateTimeAdd([DOB],66,"years"),12,"months"), so adding 66 years and 1 month to the date of birth field, then it needs to be hard coded in the column [Value].
If it is linked to an underlying cell in Excel, but displaying the same result then it is read in as "00:00:00", column [Formula]. Is a "double" formula too complex for the Dynamic Replace tool to handle?
However, the expression DateTimeAdd([DOB],65,"years") seems to be fine whether read in as hard coded text or in a linked cell.
2. Not all of my data is being converted by the replace tool.
For example, if [DOB]='1946-10-01' then SPA_M should be the individuals 65th birthday - and the table works giving [SPA_M] = '2011-10-01'
However, when [DOB]='1954-03-08' then the value 2004 is generated by the table rather than [SPA_M] = '2019-09-06'
I can't see why the tool would give the incorrect result!
Thanks in advance!