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

Combining Rows Based on Matching Fields

JoshJones55
5 - Atom

Hi All,

 

Im parsing a txt file with multiple rows that are technically the same overall record. I need to combine the rows based on the columns 1,2,3,4 that have identical fields. Thus if the data in columns 1,2,3, and 4 are an exact match combine the other columns together into 1 row (I.e. Row 1 and 2 would become one row). Please reference below example of the data:

 

Column 1Column 2Column 3Column 4Column 5Column 6Column 7Column 8Column 9Column 10
00150.0002/22/23AAA999PassJohn    
00150.0002/22/23AAA999  NYUSA  
00150.0002/22/23BBB999FailFrank    
00225.0002/22/23AAA999    CorpDev
00225.0002/22/23AAA999PassBob    
00315.0002/22/23BBB999    CorpAudit
00315.0002/22/23BBB999FailJosh    
00325.0002/22/23BBB999PassMark    
00325.0002/22/23BBB999  NCUSA  

 

Thank you in advance!

4 REPLIES 4
BS_THE_ANALYST
15 - Aurora
15 - Aurora

@JoshJones55 here's one way:

BS_THE_ANALYST_0-1677098571217.png

 

 

All the best,
BS

LinkedIN

Bulien
ShankerV
17 - Castor

Hi @JoshJones55 

 

One way of doing this more dynamically if in future when there will be more columns in addition.

 

ShankerV_0-1677125423490.png

 

Many thanks

Shanker V

Raj
16 - Nebula

you can try this as well

Raj_0-1677127166064.png

 

JoshJones55
5 - Atom

Thank you all! Both ways work.

Labels
Top Solution Authors