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.

Replace

kimvaldez
5 - Atom

How I can replace A, B, C, D, with A only? Can I use Formula tool? if so, what is the syntax

2 REPLIES 2
Luke_C
17 - Castor

Hi @kimvaldez 

 

You can use a replace (either normal or regex) formula or a find and replace tool. Your example is a bit unclear, but if your data is literally "A, B, C, D," then you could do:

 

Replace([Field Name],"A, B, C, D,","A")

 

Hopefully this helps, otherwise provide additional sample data. 

 

Additional Resources

Find and Replace | Alteryx Help

String Functions | Alteryx Help

 

afv2688
16 - Nebula
16 - Nebula

Hello @kimvaldez ,

 

would recommend for this case using the “contains” formula.

 

IIF(Contains([Field1], “A”), “A” , [Field1]) 

 

that way to doesn’t matter if it goes A,B,C,D or A,B,C for example 

 

regards

Labels