Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Split data

SCK
8 - Asteroid

Hi all,

 

I need help in splitting the data. Below is the input and desired output. Please provide solution. Thanks in advance.

 

Input:

Account
10006 - Petty Cash - usable
10010 - Cash - Operating Account - Bank.
11000-11 - Accounts Receivable - Unit1

11000-12 - Accounts Receivable - Unit2

 

Output:

 

Account1Account2
10006Petty Cash - usable
10010Cash - Operating Account - Bank.
11000-11Accounts Receivable - Unit1
11000-12 Accounts Receivable - Unit2
4 REPLIES 4
atcodedog05
22 - Nova
22 - Nova

Hi @SCK 

 

Regex Tool | Parse mode

 

([\d-]+) - (.*)

 

Give this regex a try.

 

Output:

atcodedog05_0-1606298866436.png

Config:

atcodedog05_0-1606298945932.png

 

Hope this helps 🙂 Feel to ask if you have any questions


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

PhilipMannering
16 - Nebula
16 - Nebula

Hi @SCK 

The regex tool can make short work of this. See attached.

PhilipMannering_0-1606298841659.png

 

SCK
8 - Asteroid

Both solutions worked perfectly fine. Thank you for the help.

atcodedog05
22 - Nova
22 - Nova

Happy to help 🙂 @SCK 

 

Cheers and Happy Analyzing 😀

 

Feel free to reach out if you face any issues 🙂

Labels
Top Solution Authors