Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

populate a column with a value *adjacent* to the max value from a subset

matthew_swanson
7 - Meteor

hi everyone, i have another problem i cant think of a solution to.. could someone please help?

 

so, let's say i have a dataset like this.. i am trying to figure out how to make a 4th column that contains the value in column 3 from whichever row that has the max value of column 2 grouped by column 1

 

so i want to take this:

 

matthew_swanson_0-1622225583527.png

 

and find a way to make a 4th column that looks like this

 

matthew_swanson_0-1622226271814.png

 

i've gotten halfway there. i know how to use the summarize tool to find the max value in column 2 grouped by column 1, but i dont actually care about that max value... i want the value from the column beside it..

 

1 REPLY 1
matthew_swanson
7 - Meteor

never mind, i figured it out.. i needed to join the original dataset onto the summary to get the third column value.. and THEN join the summary data onto the original dataset

 

matthew_swanson_0-1622226891917.png

 

Labels