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

Text to column on Multiple Data

Devika
8 - Asteroid

Hello,

 

On the below table I only wanted to create another column name 'ADML' which would only contain data starting with D not the no's in the bracket.

Please help me with the formula which would filter out the no's in bracket.

 

Trade Refs (Ours)     ADML 
D345447 (000005) 
D343792 (000005) 
D527015 (002884) 
D520288 (002884) 
D520288 (002884) 
I129702 (000005) 
I129702 (000005) 
D418531 (000005), D420345
(000005)
 
D428163 (000005), D428920
(000005)
 
D402199 (083004), D523515
(083004), D317365 (083004),
D325464 (083004), D419502
(000005), D525641 (000005)
 
8 REPLIES 8
binuacs
21 - Polaris

@Devika 

binuacs_0-1646921817029.png

 

Luke_C
17 - Castor
17 - Castor

Hi @Devika 

 

Here's my approach:

 

  1. Record ID to help group the data downstream
  2. Split data to rows
  3. Check if it starts with 'D' (a few start with I which you don't want based on your requirements) and populate ADML
  4. Group records back together

 

Luke_C_0-1646921918853.png

 

EN6924
10 - Fireball

Assuming your dataset has 10 records as mentioned above, My solution -

 

EN6924_0-1647072314427.png

 

Devika
8 - Asteroid

this is the output dat im willing to get 

 

Trade Refs (Ours)     ADML 
D345447 (000005)D345447
D343792 (000005)D343792
D527015 (002884)D527015
D520288 (002884)D520288
D520288 (002884)D520288
I129702 (000005)I129702
I129702 (000005)I129702
D418531 (000005), D420345D418531,D420345
D428163 (000005), D428920D428163,D428920
D402199 (083004), D523515D402199,D523515,D317365,D325464,D419502,D525641
(083004), D317365 (083004),
D325464 (083004), D419502
(000005), D525641 (000005)
binuacs
21 - Polaris

@Devika any specific condition which has to consider when concatenate the rows, I can see the last 4 rows you concatenated in your output result.

Devika
8 - Asteroid

Hello@binuacs,

 

Just modified the expected output 

 

Trade Refs (Ours)     ADML 
D345447 (000005)D345447
D343792 (000005)D343792
D527015 (002884)D527015
D520288 (002884)D520288
D520288 (002884)D520288
I129702 (000005)I129702
I129702 (000005)I129702
D418531 (000005), D420345D418531,D420345
D428163 (000005), D428920D428163,D428920
D402199 (083004), D523515(083004), D317365 (083004),D325464 (083004), D419502(000005), D525641 (000005)D402199,D523515,D317365,D325464,D419502,D525641
EN6924
10 - Fireball

I did it like the following way, got accurate result as requested -

 

EN6924_0-1647440773994.png

 

Please correct me if this can be done in more short way.

 

binuacs
21 - Polaris

@Devika 

binuacs_0-1647441792066.png

 

Labels