Alteryx Designer Desktop Discussions

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

Filter to get max value from each group?

matthew_swanson
7 - Meteor

i have a dataset where i need to get the max from each group, is there a tool that can help me do this?

input

keycolumn1column2
1red3
2red4
3green7
4green8
5blue6
6blue2
   

 

desired output:

keycolumn1column2
2red4
3green8
5blue6
3 REPLIES 3
marcusblackhill
12 - Quasar
12 - Quasar

Hey @matthew_swanson !

 

You can do it with summarize tool, groupby the column 1 and select column 2 to get the max.

 

Hope that helps!

matthew_swanson
7 - Meteor

@marcusmontenegro Almost. ive managed to get the summarize tool to return the max value for each group, but i cant figure out how to make it return the key for that row.. the value itself is only going to be helpful if i know which row it came from

marcusblackhill
12 - Quasar
12 - Quasar

Gotcha, see if that attached example helps

Labels