Alteryx Designer Desktop Discussions

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

Application of 2 conditions in if statement for same column

Gsiva3
8 - Asteroid

Hi Team,

 

Please help me on this.

 

I have a input with values like blank cells, A, D, C. By required output is If values is = "" or "A" then output should be "" blank, else output should be 99+cell values.

 

InputOutput
  
A 
B99B
C99C
D99D
A 
A 
  
  
D99D
3 REPLIES 3
DawnDuong
13 - Pulsar
13 - Pulsar

I think this should work for you:

 

IF [Input] = "" OR [Input] = "A"

THEN ""

ELSE "99"+[Input]
ENDIF

 

If you have not already done so, highly recommend that you watch the interactive lessons. The "Alteryx for Excel Users" is particularly useful.

 

Screenshot 1.PNG

Gsiva3
8 - Asteroid

Hi @DawnDuong 

I have already tried this formula. But is not working out.

Please see the screen shot below.

Gsiva3_0-1623649228864.png

 

 

DawnDuong
13 - Pulsar
13 - Pulsar

You need to Update column "Output" or create a new column called "Output" if that does not already exist.

Currently you set to update "Input"... Also you can use Isnull() function to capture both blank and null inputs.

Formula tool.PNG

 

Formula tool is really a core tool, really recommend that you learn the basics via that 5-min interactive lesson.

Cheers.

Labels