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

Alteryx Designer Desktop Discussions

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

Un-concatenate values without Text to Columns

jimdmart
5 - Atom

Hello everyone!

 

I'm trying to separate data that was separated by a comma when I was downloading a report from Salesforce. Below is an example of the data I got. I don't want to use Text to Columns because there are about 20 more columns and about ~30K rows worth of values (here I only show 4 each column in order to simplify things). This makes the the process take about 25 minutes to run.

 

Let me know if there is any other data I can provide

 

Thank you in advance

1 REPLY 1
DataNath
17 - Castor
17 - Castor

Hey @jimdmart, totally understand the thinking behind not wanting to use a Text-To-Columns tool for every field you want to split. Fortunately, we can get around this (and as a result make the process dynamic to N number of fields), by first transposing the data so that all values sit in a single column, next to their respective name in another field. Once they're all in the same field, we can split them, assign unique identifiers to stop them becoming re-concatenated and then Cross-Tab back into our preferred format. Here's a breakdown of the steps and the final results:

 

Record ID:

 

DataNath_0-1686165951041.png

 

Bring all 'values' into a single field to split:

 

DataNath_1-1686165978938.png

 

Split said column to rows:

 

DataNath_2-1686165993370.png

 

Assign a unique identifier to each Record ID - Name pair to keep results split when re-aggregating:

 

DataNath_3-1686166026119.png

 

Cross-Tab back into original table form:

 

DataNath_4-1686166041485.png

 

Remove temporary Record ID/unique identifier fields (can also re-order etc here if desired):

 

DataNath_5-1686166068462.png

 

Workflow shown here is attached for you to look over. Hope this helps you out!

Labels