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

Split a Column - Create New Columns

bcampbell0621
8 - Asteroid

Hello All:

 

I have the following two data sets - world population by country and United States population by state, and I would like to combine them. 

 

 We have to keep United States in the Country column and create four new columns with the State information in one and Region in the other (with population totals for both), next to the Country column.  The US population comes from the POPESTIMATE2019 field in the us_state_region_population_2019 file. 

 

I created an example of the output file structure for a visual.  The join part was easy, but splitting the data was a bit more challenging and would greatly appreciate your suggestions.  

 

Thank you so much!!

 

Bruce.

2 REPLIES 2
grossal
15 - Aurora
15 - Aurora

Hi @bcampbell0621,

 

I think I got you! My result looks like this:

 

grossal_0-1584915037275.png

 

 

Workflow:

grossal_1-1584915060596.png

 

Steps (in the bottom path):

 

1) Select only needed columns

2) Split Nation / State Information from the rest

3) Skip Nation Information (nice to have)

4) Join both together

5) Union everything

6) Adjust column order and names to get the estimated outcome

 

 

Workflow is attached. Please mark it as a solution if it solves your problem or drop another question 😃

 

 

Best

Alex

bcampbell0621
8 - Asteroid

Alex, this looks great!   Thank you so much!  

Labels