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

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
binuacs
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