Alteryx Designer Desktop Discussions

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

Coloum format

mihir_mir_jb
8 - Asteroid

Hi All,

 

I have a huge dataset where I need to rename components from a couple of columns.

 

Column Region has various names under it and all of it are to renamed as America.

US

LATAM

GWM America

GF US Funds

GIL Americas

 

Similarly I have below which needs to be renamed as EMEA

Europe

GWM PB Europe

Europe Other

 

How can I do this? 

5 REPLIES 5
ramesh_neel
11 - Bolide
11 - Bolide

@mihir_mir_jb  - Have you tried the below using a formula tool?

 

IIF(Contains([Region], "Europe"),"EMEA","America")

 

ram_neel_0-1583401940063.png

 

 

Alteryx ACE | Sydney Alteryx User Group Lead | SparkED Contributor and Mentor
mihir_mir_jb
8 - Asteroid

Hi ram_neel, thank you vm for your reply.

 

Can I use the same formula if I have three regions to be renamed, the third one being Asia

 

ramesh_neel
11 - Bolide
11 - Bolide

@mihir_mir_jb  - This will not work in that case , we need to re write it based on the values that are under 'Asia' . Do you have a sample data set to share? 

Alteryx ACE | Sydney Alteryx User Group Lead | SparkED Contributor and Mentor
mihir_mir_jb
8 - Asteroid

Below regions to be renamed as America(non-US)

US

Latam

GWM-America

GF-US-Funds

GIL-Americas

GI-Latam

 

Below regions to be renamed as EMEA

Europe

GWM-PB-Europe

GWM-PB-ME

GI-Europe

Europe-Other

Global

 

Below region to be renamed as Asia

Asia

GWM-PB-Asia

GIL-Asia

GIL-Asia-Instl-Asia

GI-IN-International

ramesh_neel
11 - Bolide
11 - Bolide

In this case , I have a different approach which makes it a lot more flexible  (Please refer to the attached workflow ). I have created a region mapping reference where each region is mapped to a group  and using the join tool I am joining region column from the reference table to the region column from the input data . If a new region gets added to your input data , all you need to do is add that region and the group it maps to in the reference table ! 

Alteryx ACE | Sydney Alteryx User Group Lead | SparkED Contributor and Mentor
Labels