Alteryx Designer Desktop Discussions

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

Get the largest value and its column name

filipesilverio
5 - Atom

Hi,

I'm a beginner and I've some doubts.

 

I've a data set like the following one

 

 ABCDEFG
ID1       
ID2       
ID3       
       


in which A to G are values.


What I want to get is the following result: find the largest value and  then get the name of the column (A, B,C,etc). Something like:

 

 ABCDEFGRESULT
ID131100012C
ID212330832D
ID3902204631A

 

 

Is that possible?

Thanks in advance

3 REPLIES 3
rafalolbert
ACE Emeritus
ACE Emeritus

Hi @filipesilverio,

 

Here you go:

 

image1.JPG

 

Thanks,

Rafal

 

#Excuse me, do you speak Alteryx?

filipesilverio
5 - Atom

Many thanks!

ngavish
5 - Atom

Very nice workaround! For robustness, I'd add another row for the first join. Under join by specific fields: id to id. That way, in case there are multiple maximum values the workflow won't result in a huge amount of joins and only take the maximum one(s) for each ID. 

Labels