Hello and good evening my Alteryx friends. Happy post voting day! I the following and I need some support
INPUT
| unit | store | expenseCd | cost | 
| 123 | ab660 | rental | 100 | 
| 123 | ab660 | other | 99 | 
| 456 | cx790 | rental | 1200 | 
| 456 | cx790 | other | 68 | 
| 456 | cx790 | add | 1000 | 
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.
| unit | store | expenseCd1 | expenseCd2 | expenseCd3 | CostSummary | 
| 123 | ab660 | rental | other | 199 | |
| 456 | cx790 | rental | other | add | 2268 | 
Your help is most appreciated.
Solved! Go to Solution.
thank you JD! I initially tried David's on my smaller population and the answer was as expected, but after I applied it to my million records it came up with 17 columns of Expense codes. I did not realize I would have 17 different codes, otherwise I would have asked for a different remedy.
You solution fits the bill, but I will keep David's in my back pocket for other queries.
Thanks again JD and David.
Mike
 
					
				
				
			
		
