Alteryx Designer Desktop Discussions

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

How to remove special characters only when not followed by strings

Sifur
5 - Atom

Hi,

i am trying to remove special characters only when they are not part of a lead unique identifier.

For instance it would look like this:

Converted From Qualified LeadConverted From Qualified Lead
- 
- 
Lead-292915Lead-292915
Lead-214853Lead-214853
- 
Lead-316569Lead-316569
- 
Lead-176302Lead-176302
Lead-214641Lead-214641

 

Anyone knows how to do that? when exporting files from SFDC the nulls come up with a dash and I would like to return them null again.

thanks

2 REPLIES 2
kelsey_kincaid
12 - Quasar

Hi @Sifur ,

You could use an IF statement to replace anything that is only a dash with Null().

 

IF [Converted From Qualified Lead] = '-' THEN
Null()
ELSE
[Converted From Qualified Lead]
ENDIF

 

 

Sifur
5 - Atom

Perfect! Thanks for your help! 🙂

Labels