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

Need to create a new column based on data in another column

InfoManager
7 - Meteor

Having a bit of a difficult time with this one. I'm new to Alteryx and still learning the ropes.

 

Based on the data contained in one column of my workbook, I need to create another column with different data. For example:

CountryYear

USA

2015
USA2016
France2016
Japan2015
USA2014

 

What I would like to have is something that looks like this:

CountryUS or Non-USYear
USAUSA2015
USAUSA2016
FranceNon-US2016
JapanNon-US2015
USAUSA2014

 

I tried to look for a formula that would create values in a new column (US or Non-US) based on the values in the Country column, but I can't seem to figure it out. Any help would be greatly appreciated!

 

Megan

2 REPLIES 2
JoshKushner
12 - Quasar
Try this out!

Add a new field in the formula bar and name the field what you like with the formula:
IIF([Country] = "USA", "USA", "Non-US")
InfoManager
7 - Meteor

So easy! Thank you!

Labels