Alteryx Designer Desktop Discussions

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

Creating personal profiles from customer database

fomenter
8 - Asteroid

Hi,I have a list of customer names with their attributes, as given below 

 

NameTitleAgeSurgerySurgery Date
Thomas DereckMr.32SR15/12/2014
Svanki RogolusMr.21TY35/21/2015
Steve WatsonMr.44SR23/9/2016
Emily SmithMs.19TT111/9/2012

 

I want to transpose this table and create "profiling cards" for each customer (that I will later write to hive table). Is it doable with a macro?

Cust1CustNameThomas Dereck
 CustTitleMr.
 CustAge32
 SurgeryTypeSR1
 SurgeryDate5/12/2014
Cust2CustNameSvanki Rogolus
 CustTitleMr.
 CustAge21
 SurgeryTypeTY3
 SurgeryDate5/21/2015
Cust3CustNameSteve Watson
 CustTitleMr.
 CustAge44
 SurgeryTypeSR2
 SurgeryDate3/9/2016
Cust4CustNameEmily Smith
 CustTitleMs.
 CustAge19
 SurgeryTypeTT11
 SurgeryDate1/9/2012
3 REPLIES 3
jdunkerley79
ACE Emeritus
ACE Emeritus

Do able without a macro

 

Use a RecordID tool to add a unique id for each customer.

Then use a formula tool to make Cust1, Cust2, etc

Following this us a Transpose tool to covert to layout

Finally a Find and Replace can rename columns

 

Sample attached 

fomenter
8 - Asteroid

Thanks it works, but have one more question, instead of repeating cust1 5 different times, can we use it only once per record

 

Like;

 

Cust 1  

           CustName

           Title

           Age

           SurgeryType

           SurgeryDate

Cust 2  

           CustName

           Title

           Age

           SurgeryType

           SurgeryDate

          

          

 

jdunkerley79
ACE Emeritus
ACE Emeritus

I did a quick adjustment using a Multi-Row formula to blank out the second CustID

Labels