Alteryx Designer Desktop Discussions

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

How to add column according to condition?

phoebe_90
8 - Asteroid

After I got column A and B, how can I using tool to get column C-H?

   

ABCDEFGH
AmountOver due days0 days1-30days31-60days61-90days91-120days>120days
100001000     
200010 2000    
300040  3000   
400070   4000  
5000100    5000 
6000140     6000
3 REPLIES 3
ShankerV
17 - Castor

Hi @phoebe_90 

 

Please use Formula tool.

 

Formula tool settings:

Output column: 0 days

IF [Over due days] = 0
THEN [Amount]
ELSE null()
ENDIF

Data type: V_String

 

Many thanks

Shanker V

ShankerV
17 - Castor

Hi @phoebe_90 

 

Likewise please replicate the above by using + symbol to add.....

Formula tool settings:

Output column: 31-60days

IF [Over due days] >= 31 AND [Over due days] <=60
THEN [Amount]
ELSE null()
ENDIF

Data type: V_String

 

Formula tool settings:

Output column: 1-30days

IF [Over due days] >= 1 AND [Over due days] <=30
THEN [Amount]
ELSE null()
ENDIF

Data type: V_String

 

Formula tool settings:

Output column: >120days

IF [Over due days] >120
THEN [Amount]
ELSE null()
ENDIF

Data type: V_String

 

Many thanks

Shanker V

Qiu
20 - Arcturus
20 - Arcturus

@phoebe_90 
I think we can as below, of course we can a bit more about the header using Dynamic Rename tool.

0509-phoebe_90.png

Labels