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 Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. 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

If empty then xx. (Error: Parse Error at char(0): Parse Error (Expression #1)

Barclaysusercds
8 - Asteroid

I want to write a basis formula if a column in this case [Concat] is blank or empty then put "Other derivative" otherwise [Concat].

How do I write this in Alteryx?

I tried writing these two formulae in the box but an error message appears.

 

=if(!IsEmpty([Concat]), "Other derivative",[1 - DataLens matched])

 

=IF [Concat]="" THEN "Other derivative" ELSE [Concat] ENDIF

4 REPLIES 4
binu_acs
21 - Polaris

@Barclaysusercds can you try the below formula

 

IIF(IsEmpty(Trim([concat]),'Other derivative',[concat])

 

IraWatt
17 - Castor
17 - Castor

Hey @Barclaysusercds,

You bottom statement looks fine after removing the equals sign:

IraWatt_0-1652700886142.png

 

Make sure your data is of type string 

messi007
15 - Aurora
15 - Aurora

Hello,

 

Please see below how you can do it

 

if IsEmpty([Concat]) THEN  "Other derivative" ELSE [Concat] ENDIF

 

iif(!IsEmpty([Concat]), "Other derivative",[Concat])

Hope this helps!

Regards 

IraWatt
17 - Castor
17 - Castor

@Barclaysusercds your issue is the "=" only need to do that in Excel ;)

Labels
Top Solution Authors