Free Trial

Alteryx Designer Desktop Discussions

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

Highest annual salary in each country

Spy3y3
7 - Meteor

Good Morning, Afternoon, Evening, as your respected time,

 

Question => Find the employee with the highest annual salary in each country.

 

I got the answer to the above question but wanted to know if the workflow that led to my answer is a good way to go I have attached the answer file for your reference.

4 REPLIES 4
gawa
16 - Nebula
16 - Nebula

hi@Spy3y3 

A couple of suggestion.

 

In order to convert 'string' number, you can use ToNumber formula function. This is the simplest way to do so.

image.png

 

Summarize tool config to be reviewed again. With this, Summarize tool outputs Max salary of each country, but not sure the 'First_Full_Name" shown is corresponding to Full Name of the record having max salary. 

 

image.png

 

One way is like this: sort by country and salary(descending order), and sample first records(group by country)

image.png

 

At last, if you want to share your workflow with input raw data, try to export in yxzp format. Option=>Export Workflow

image.png

Spy3y3
7 - Meteor

Hi, 

 

Thank you so much for letting me know in detail. 

 

As shown in the image below, I have attempted the same formatting, but the first one did not work in the 'Full_Name' column

image.png

gawa
16 - Nebula
16 - Nebula

I just copy and paste what you configured in your shared WF. Try as per 2nd screenshot, Sort&Sample.

gawa
16 - Nebula
16 - Nebula

I just copy and paste what you configured in your shared WF to highlight what's wrong. Try as per 2nd screenshot, Sort&Sample.

Labels
Top Solution Authors