Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Keeping header and value of column with higher number

Felipe_Amancio
7 - Meteor

Hi masters

 

what would be the easiest solution to keep the value and header of the column with the highest number? see example below

 

- Original table

IDUSACanadaBrazil
0011000500700
002300035003200
003250020002800

 

- Expected result

IDUSACanadaBrazilHighest NumberHighest Number Origin
00110005007001000USA
0023000350032003500Canada
0032500200028002800Brazil

 

Thanks

 

Felipe

1 REPLY 1
apathetichell
20 - Arcturus

assuming substantially more columns:

transpose - ID as key column.

summarize tool - group by ID - max value

join to transpose ID/Value

select tool Name  becomes Highest Number Origin/Max_Value becomes Highest Number

Join to the original datastream ID/ID

 

If you have only 3 columns use a bunch of IFs.

 

Labels
Top Solution Authors