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

Replacing string

Feras95p
8 - Asteroid

Dear all,

 

 

I have attached an excel sheet which contains one column named by Payment Method , what I'm looking for is to have a workflow that create a new column and checking Payment method column and if it's written there any of (Credit card, Apple Pay, Bank transfer) replace it by Online payment and write it in the new column other that these works transfer it to the new column without changing anything.

3 REPLIES 3
DavidP
17 - Castor
17 - Castor

Hi @Feras95p,

 

Here is a workflow that does what you asked.

 

As you're new to Alteryx, I highly recommend working through the Interactive lessons in the Academy section on the Community. https://community.alteryx.com/t5/Interactive-Lessons/tkb-p/interactive-lessons

 

I found them super useful when I first started out. It really covers all the things you need to know and helps accelerate your learning.

 

There is also the weekly challenges https://community.alteryx.com/t5/Weekly-Challenge/Weekly-Challenge-Index-amp-Welcome/td-p/48275

 

This is great practice to sharpen your skills.

 

Happy Alteryxing and welcome to the Community!

deviseetharaman
11 - Bolide

Hi @Feras95p 

 

You can use a Formula tool to achieve this. The formula looks something like this:

if [Payment Method] = 'Credit Card' or [Payment Method] = 'Apple Pay' or [Payment Method] = 'Bank Transfer' then 'Online Payment' else [Payment Method] endif

deviseetharaman
11 - Bolide

You can opt to create a new column or update the existing column.

Labels
Top Solution Authors