In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Formula Tool Outputs 0 or -1

Asimkz
6 - Meteoroid

Hello, 

 

I have a simple formula that take Sales Manager and replaces it with another Sales Manager based on a condition for example.  

 

The Column I am applying this formula to is [Sales Group]

If [Soldto#] = "205680" and [PH Group Species] = "Ruminants" Then [SalesGroup#] = "020" and [Sales Group] = "Bill Cotton" Elseif
[Soldto#] = "200000" Then [SalesGroup#] = "015" and [Sales Group] = "Mark Davids" Else [Sales Group] Endif

 

But in the output i am getting 0 or -1 instead of the replaced name.  Anyone know why this is happening?  Thanks in advance. 

2 REPLIES 2
CharlieS
17 - Castor
17 - Castor

If the formula is applied to the field [Sales Group] then the formula should be designed to only update that field. The following edits should make the expected updates to the [Sales Group] field. Updates to the [SalesGroup#] field will require a separate formula.

 

If [Soldto#] = "205680" and [PH Group Species] = "Ruminants" Then [SalesGroup#] = "020" and [Sales Group] = "Bill Cotton"

Elseif [Soldto#] = "200000" Then [SalesGroup#] = "015" and [Sales Group] = "Mark Davids"

Else [Sales Group] Endif

 

 

Asimkz
6 - Meteoroid

Thank you.  That worked

Labels
Top Solution Authors