Alteryx Designer Desktop Discussions

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

Working with If Statement

Ronal_bal
8 - Asteroid

Hi,

I need to compare the values in 2 fields and a create a flag based on the following condition

 

if [A] >= [B] THEN 1 ELSE 0 ENDIF receiving following error

 

Ronal_bal_2-1674143997465.png

 

 

In the below example, I need to flag when the value in field A is greater than or equal to Field B

 

 

 

Ronal_bal_0-1674143822618.png

 

5 REPLIES 5
BS_THE_ANALYST
14 - Magnetar

Are your columns/fields named [A] and [B]? because your logic is correct! if [A] >= [B] THEN 1 ELSE 0 ENDIF

BS_THE_ANALYST
14 - Magnetar

BS_THE_ANALYST_0-1674144268783.png

@Ronal_bal workflow attached

 

Felipe_Ribeir0
16 - Nebula

Hi @Ronal_bal 

 

Are you creating a new column with the 'Add a column option'?

 

Felipe_Ribeir0_0-1674144286741.png

 

I get errors similars to the one that you got when this field is not selected.

 

MarqueeCrew
20 - Arcturus
20 - Arcturus

@Ronal_bal 

 

Unfortunately you did not label the name of this field.  Give it a name and you'll be golden. 

cheers,

 

 mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Ronal_bal
8 - Asteroid

There was an issue with field type as one of the field type was string. I converted it to int and its working fine now..

Labels