Hello All,
I am extremely new to Alteryx and have ran into an issue while trying to cleanse some data. The data I am cleansing has singular numbers in a few of the cells. It is just the number "2". I am attempting to replace all of these 2s with a null field. I added a Multi-Field Formula with the expression:
IF [column-name0]==2 THEN NULL()
ELSEIF [column-name1]==2 THEN NULL()
ELSEIF [column-name2]==2 THEN NULL()
ELSEIF [column-name3]==2 THEN NULL()
ELSEIF [column-name4]==2 THEN NULL()
ELSEIF [column-name5]==2 THEN NULL()
ELSEIF [column-name6]==2 THEN NULL()
ELSE [_CurrentField_]
ENDIF
I am very embarrassed, again, because I am so new to this software. However, I was hoping this expression would go down each of my columns and change any singular 2s to nulls. If there is not a 2 in the field, then I wanted the information to be left as is. This has not been the case. When ran, it makes every cell in a row with a 2 null. When I run the above expression, it changes every cell in the column to null.
If anyone could recommend a fix to me, or explain to me why the entire row becomes null, I would GREATLY appreciate it. Thank you in advance!