Alteryx Designer Desktop Discussions

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

Data Preperation : Multi-column handling

harsha384
8 - Asteroid

Hi All,

 

I have a query below :

Input:

Col ACol B
11Alan
12Joe
13Paul
13Nick
13Colan
14Mike
14Chris
15Sam
16Lee
  

 

Output :

Col ACol B
11Alan
12Joe
13Paul+Nick+Colan
14Mike+Chris
15Sam
16Lee
  
  
  
  

 

when i tried using multi-row formula to compare and create a new field, I am getting a default value as 0.

 

Eg: IF [Col A]=[Row-1:Col A] THEN [Col B]=[Col B]+[Row+1:Col B] ELSE [Col B] ENDIF

 

Guide me how to work through it.

 

Thanks

Harsh

3 REPLIES 3
DataBlender
11 - Bolide

Hi @harsha384

 

A quicker way would be to use the Summarize tool : Group by Col A, then Concat Col B. At the bottom of the configuration window you will be able to define the separator as '+' to get the result you gave.

ShaanM
Alteryx Alumni (Retired)

Hi

 

You could solve this by using the cross tab and transpose tools

 

I have attached a solution

 

Shaan

Shaan Mistry
Co - Founder : datacurious.ai
harsha384
8 - Asteroid

Hey thanks @Asteriod. I absolutely forgot about summarzie function.Works great!

 

Thanks

Labels