Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

ReplaceChar with Space

Chirag_Gandhi07
8 - Asteroid

Hi everyone,

 

I have the following data:

 

Name

James;Smith

 

I used a formula tool and did: ReplaceChar([Name], ";", ", ")

 

What I got was: James,Smith

I would like James, Smith

 

Am I doing something wrong with the ReplaceChar formula? Any help would be greatly appreciated. Thanks!

3 REPLIES 3
JoBen
11 - Bolide

Hi @Chirag_Gandhi07, why don't you try this formula instead. REGEX_Replace([Name] "\;", ", "). I believe the ReplaceChar formula is replacing one character with only one character. Since you are trying to replace one character (";") with two (a comma and space), it is uisng the first replacement character to replace the semi-colon. 

Thableaus
17 - Castor
17 - Castor

Hi @Chirag_Gandhi07

 

ReplaceChar replaces exactly one char. It's not recommended in your case.

 

You can still use Replace Function

 

Replace([Field],";",", ")

 

Cheers,

Chirag_Gandhi07
8 - Asteroid

Thank you!

Labels