Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Split one field based on another

swiles
5 - Atom

Hello,

I have data that I need new fields created based on the value in one field. If the value in the “isEnding” field is TRUE, then I need the amount to go to a new field “Ending”. If the value in “isEnding” is FALSE, then I need the amount to go to a new field “Beginning”. Attached is an Excel file with two worksheets, the Input and the desired output.

Thanks in advance for any suggestions!

Scott

1 REPLY 1
ChrisTX
16 - Nebula
16 - Nebula

Use the Formula tool to create two new fields

 

Beginning formula   If [isEnding] = 0 Then [Amount] else Null() Endif

 

Ending formula   If [isEnding] = 1 Then [Amount] else Null() Endif

Labels
Top Solution Authors