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

Replacing field values to match top value based on different column value

Lili7891
7 - Meteor

Hi, 

 

This one might be more simple than I think, I'm trying to replace values in a cell based on the data in other columns.

 

My data set up is as follows:

 

NameLocationValue
AUK100,000
AUS20
BIndia30,000
BGermany3000

 

I've already sorted the data so the name is in ascending order and the values are descending and I want to replace the location field to match the field that has the highest value in as I essentially want to summarise the values at the end and assign them to the location (so duplication removal won't work), basically I want the table to look like below after running

 

NameLocationValue
AUK100,000
AUK20
BIndia30,000
BIndia3000

 

I think maybe if I use a multi row formula I can achieve this but not sure on the condition to make it work out it's the field with the highest value - hence why I did the sort beforehand. 

Appreciate any suggestions.

 

Thank you.

4 REPLIES 4
Qiu
21 - Polaris
21 - Polaris

@Lili7891 
I hope this is what you need.

Capture1A.PNG

mceleavey
17 - Castor
17 - Castor

Hi @Lili7891 ,

 

you almost had it in your description.

 

mceleavey_0-1623847094266.png

 

Applying max in the sum tool allows you to achieve this.

 

mceleavey_1-1623847119380.png

 

Hope this helps,

 

M.

 

 



Bulien

Lili7891
7 - Meteor

Amazing, worked perfectly, thank you so much!

Qiu
21 - Polaris
21 - Polaris

@Lili7891 
Glad to help and thank you for the accept mark. 😁

Labels