Hi,
I have to design a workflow to prepare my excel in desired format
Transformation needed
Solved! Go to Solution.
@VJ_88 you can do all of this with the multi-field formula tool (or 2 tools).
The first tool would use
REPLACE(REPLACE([_currentfield_],'-`',''),'`','')
with all fields (including dynamic or unknown fields) selected.
For the complex part, again tick all fields (including dynamic or unknown fields) and then use the following formula
IF IsEmpty([_currentfield_]) AND Endswith([_currentfieldname_],'_DF') THEN 1900
ELSEIF IsEmpty([_currentfield_]) AND Endswith([_currentfieldname_],'_NF') THEN -1
ELSE [_currentfield_]
ENDIF
If these fields are strings, then you may need to do '1900' and '-1' rather than the unquoted versions I put above.
I'm away from Alteryx atm, so test that formula out, but I think it should work.
Ollie