We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Changing records in one field based on another

kerwinhack
6 - Meteoroid

I am trying to update a field based on the value in another but get this error message: Error: Formula (66): Parse Error at char(76): Parse Error (Expression #3)

 

This is the formula I am using:

kerwinhack_0-1624003270627.png

 

Any suggestions?

 

10 REPLIES 10
Emil_Kos
17 - Castor
17 - Castor

Hi @kerwinhack,

 

you need to add space before endif and it should work.

 

You need it more like this:

 

Emil_Kos_0-1624003474735.png

and not like this:

Emil_Kos_1-1624003486470.png

 

kerwinhack
6 - Meteoroid

Thanks for the prompt response, I have tried that and the error is still the same: Error: Formula (66): Parse Error at char(76): Parse Error (Expression #3)

 

IF [Ac Record Type] = 'Person Account' THEN 'Not applicable' ELSE [Ac Industry Type] ENDIF

Emil_Kos
17 - Castor
17 - Castor

Hi,

 

The Ac record type is in string format? 

 

If that is the case could you try to create a new string column with the same formula but with a different name?

kerwinhack
6 - Meteoroid

Yes, V_WString as is the AC Industry type.

mceleavey
17 - Castor
17 - Castor

@kerwinhack ,

 

can you post a representative sample or mock up of your data?

 

Thanks,

 

M.



Bulien

Emil_Kos
17 - Castor
17 - Castor

Hi @kerwinhack,

 

The last thing that I would do is create a new column and check if it works. As I have created a workflow and this formula works at least in my Alteryx.

 

If that will not help please do as suggested by @mceleavey. Share your data with us. 

 

 

kerwinhack
6 - Meteoroid

Here is some sample data:


Ac Industry Type              Ac Record Type
Legal                                Business Account
Legal                                 Person Account

 

So the first record should stay as Legal and the second should change to not applicable.

mceleavey
17 - Castor
17 - Castor

Hi @kerwinhack ,

 

Yeah, it works perfectly:

 

mceleavey_0-1624008668830.png

 

M.



Bulien

Emil_Kos
17 - Castor
17 - Castor

Hi,

 

Please check if this works for you:

 

Emil_Kos_1-1624008764805.png

 

Labels
Top Solution Authors