We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Create scoring (1 to 10) based on value for different cities

sophievanluin
7 - Meteor

Hi,

 

I'd like to add a calculation to a workflow that scores cities based on their population distribution. I want to assign a score from 1 to 10 to each city, where 1 is the lowest population group and 10 is the highest. The groups should have an equal percentage of the total population, so I'd like to see roughly the same number of 10's as 7's or 6's or 5's, etc.

Additionally, I need a sustainable solution, as the population values are updated from time to time. Can anyone help me with this?

 

dummy data 

IDCityPopulation
1Amsterdam728180
2Amsterdam803415
3Amsterdam961880
4Amsterdam578640
5Amsterdam587370
6Amsterdam980870
7Amsterdam1059035
8Amsterdam737195
9Amsterdam980345
10Amsterdam657840
11Amsterdam478930
12Amsterdam885250
13Amsterdam536740
14Amsterdam659525
15Amsterdam783575
16Utrecht394445
17Utrecht344610
18Utrecht244475
19Utrecht1045450
20Utrecht510315
21Utrecht254300
22Utrecht486205
23Utrecht411660
24Utrecht859500
25Utrecht278280
26Utrecht568305
27Utrecht679285
28Utrecht341095
29Utrecht334145
30Utrecht821690
31Utrecht441785
32Utrecht716990
33Utrecht272255
34Utrecht317990
35Utrecht254025

 

 

 

2 REPLIES 2
alexnajm
18 - Pollux
18 - Pollux

Sounds like the Tile tool with the Equal Sum option! You can even group by the city if you need scoring for Amsterdam vs Utrecht - see attched

 

otherwise we may need more clarity on your expected output

Raj
16 - Nebula

@sophievanluin find the workflow attached

mark done if solved.

Labels
Top Solution Authors