Alteryx Designer Desktop Discussions

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

Using summary tool for variable amount of fields

Viwi
5 - Atom

Hi, I have been applying the summary tool to this dataset: 

 

CategoryAliceBob
154
171
285
247
228

 

I would apply group by to "Category" and as aggregation method choose "max" for all names, so the result would be 

 

CategoryAliceBob
174
288

 

However, the names in my source data may change (e.g. Bob-> Ben) and also the amount of names may vary. So I am looking for a workflow that can in addition to above aggregation also aggregate this table: 

CategoryAliceBenOscar
1123
1654
2789
2789
2654

 

to 

 

Category AliceBenOscar
1654
2789

 

Thanks in advance for any help :-) 

1 REPLY 1
BrandonB
Alteryx
Alteryx

What about transposing your data first and grouping by category as a Key Column. This would change the orientation vertical and would accommodate new columns if you had the dynamic or unknown columns box checked. Then you could use a summarize tool where you group by category, group by the new "Name" column, and then choose Max on the values column. This would give you the max value for each name by category. Then if you want the names of the people back as column headers you would just crosstab the data back to a horizontal layout.  

Labels