Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

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
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
Top Solution Authors