Important Community update: The process for changing your account details was updated on June 25th. Learn how this impacts your Community experience and the actions we suggest you take to secure your account here.

Alteryx Designer Desktop Discussions

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

Replacing a field from separate column

GoldenDesign04
8 - Asteroid

I have a column that contains two locations from the extract, there is another column that indicates if they are in both locations.

 

I want to combine this into a single column.

wmcclure_0-1591122721747.png

 

I wrote a formula, also tried this in a multi-row formula with the same results, that in essence is:

 

IF [InBOTH] = 'Yes'
THEN [Data Source] = 'In Both'
ELSE [Data Source] 
ENDIF

 

 

Which ends up putting zeros in the Data Source column instead of the string I would like there. 

I've tried several iterations of the same logic with the same results.

????

2 REPLIES 2
Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @GoldenDesign04,

 

Your syntax is not quite right, you were nearly there!

 

IF [InBOTH] = 'Yes'
THEN 'In Both'
ELSE [Data Source]
ENDIF

 

 

Jonathan-Sherman_0-1591124479958.png

 

If this solves your issue please mark the answer as correct, if not let me know! I've attached my workflow for you to download if needed.

 

Regards,

Jonathan

 

GoldenDesign04
8 - Asteroid

@Jonathan-Sherman 

 

This made me groan out loud. Like of course! 

 

I blame Oracle SQL on writing everything crazily explicit and forgetting to alter my syntax. But in reality I was just being bone headed.

 

Thanks for the assist!!!

 

 

 

Labels