Alteryx Designer Desktop Discussions

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

Summarize and Transpose

LincolnMike
8 - Asteroid

Hello and good evening my Alteryx friends.  Happy post voting day!  I the following and I need some support

 

INPUT

unitstoreexpenseCdcost
123ab660rental100
123ab660other99
456cx790rental1200
456cx790other68
456cx790add1000

 

 

I need the following Output.  One row for the unit, displaying as many expense codes listed (usually no more than 6), and summarize the cost.

unitstoreexpenseCd1expenseCd2expenseCd3CostSummary
123ab660rentalother 199
456cx790rentalotheradd2268

 

Your help is most appreciated.  

4 REPLIES 4
DavidP
17 - Castor
17 - Castor

How about something like this?

 

summarize.png

yalmar_m
11 - Bolide

This solution might help as well (if the number of ExpenseCd's doesn't exceed 6).

LincolnMike
8 - Asteroid

Hi Yalmar,

i wasn't exactly clear on the setup for your solution.  I did try based on the image, but I am still getting multiple lines instead of 1.

LincolnMike
8 - Asteroid

Thank you David.  This worked.  I will try and apply it to the 1 million records and see if I have any hiccups.

 

 

Labels