Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

parsing.. and crosstab

Burton5555
5 - Atom

I've taken a field with text, and numeric values together and parsed them. The numeric values are currently a string and represent a scores.. (site1 3.5 4.5 5.8) I've parsed this and created capability_field and then score1, score2, and score3.

 

I've appended this from another table (company), converted score to a numeric value to build a crosstab....  my challenge is getting the scores to populate the crosstab correctly..  My value are repeating across my columns... any thoughts?

 

Burton5555_0-1621277749806.png

 

 

6 REPLIES 6
mceleavey
17 - Castor
17 - Castor

Hi @Burton5555 ,

 

Can you provide the original data so we can see what you were going from, and perhaps what you're trying to get to?

 

M.



Bulien

Burton5555
5 - Atom

Input table 1

 

Burton5555_0-1621340456904.png

 

Input table 2

Burton5555_1-1621340491205.png

 

Desired output.

 

Burton5555_2-1621340538049.png

 

 

thanks

atcodedog05
22 - Nova
22 - Nova

Hi @Burton5555 

 

Can you provide this has a excel file so that we can use it to work on logic. 

Burton5555
5 - Atom

Hi,

 

Here are the files... thanks again for any insights.

 

atcodedog05
22 - Nova
22 - Nova

Hi @Burton5555 

 

Here is how you can do it.

 

Workflow:

atcodedog05_0-1621343198763.png

 

Input 2:

1. I am splitting the columns into capabilities & values using Regex parse

2. Select tool to filter columns & rename

3. Split values into columns using text to column. I am giving root name as empty so that columns generate as 1,2...

 

Input 1:

1. I am setting record ID

2. Using select tool to convert record ID to string

 

Using dynamic rename tool I am using ID (1,2...) as key i am passing replacement headings. Which will replace 1,2... column names to company column names.

 

Hope this helps 🙂

Burton5555
5 - Atom

very slick... thank you 🙂

Labels
Top Solution Authors