We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Combining 2 rows records into one

wonka1234
10 - Fireball

Hi,

 

I have a list of rows

 

CanadaCSnullFAIL: Start
CanadaCSUPDATE: Periodnull
CanadaTDSnullFAIL: Start 
CanadaTDSUPDATE: Periodnull

 

I want to make it

 

CanadaCSUPDATE: PeriodFAIL: Start
CanadaTDSUPDATE: PeriodFAIL: Start 

 

 

How can I remove the nulls and combine the records?

5 REPLIES 5
Felipe_Ribeir0
16 - Nebula

Hi @wonka1234 

 

You can use the summarize tool to do that

 

Felipe_Ribeir0_0-1672859359619.png

 

wonka1234
10 - Fireball

@Felipe_Ribeir0 

 

hi felipe, thanks!  But how come duplicate records are now gone into one? I want to keep duplicates ie.

 

CanadaCSnullFAIL: Start
CanadaCSUPDATE: Periodnull
CanadaTDSnullFAIL: Start 
CanadaTDSUPDATE: Periodnull
CanadaCSnullFAIL: Start_two
CanadaCSUPDATE: Period_twonull
    
should now be  
    
CanadaCSUPDATE: PeriodFAIL: Start
CanadaCSUPDATE: Period_twoFAIL: Start_two
CanadaTDSUPDATE: PeriodFAIL: Start 

 

Felipe_Ribeir0
16 - Nebula

Hi @wonka1234 

 

If you always have groups of 2 rows, you can use the multi row formula to create these groups and achieve the desired result:

 

Felipe_Ribeir0_0-1672860498167.png

 

wonka1234
10 - Fireball

@Felipe_Ribeir0 

 

wonka1234_0-1672861267489.png

 

 

using your multi formula tool  - shouldn't these be apart of the same group?

Felipe_Ribeir0
16 - Nebula

@wonka1234 

 

My multi row formula was creating groups of 2 rows each

 

Can you provide an sample dataset that covers all examples that you have in your data? And the expected output

Labels
Top Solution Authors