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

Creating a Point System

Alteryxuserhere
8 - Asteroid

Hii there

Basically I want to assign points for each field that is the same based on the following criteria

If same name then assign 70 points
Same product 30 points
same Channel 30 points
same country 2 points
same city 2 points
same post code 2 points

 

and then join all together to see how much points each person with the same ID has

Can someone suggest how I may be able to do this with the following data

IDNameProductChannelCountryCityPostcode
1234James SmithHandbagOnlineNew ZealandCity 1123465
1234James SmithToteOfflineAustraliaCity 1123465
54232Hange DohPurseOnlineSpainCity 41235657
142124Tina LoueWalletOnlineSpainCity 564893
54232Hange DohPurseOnlineSpainCity 4142124

 


Thanks!

3 REPLIES 3
geraldo
13 - Pulsar

@Alteryxuserhere 

 

Below is an example workflow

Alteryxuserhere
8 - Asteroid

Amazing thanks @geraldo  Can you explain why we need to group by ID and count ID in the beginning? Can't we do it after the transpose?

geraldo
13 - Pulsar

@Alteryxuserhere 

 


Can be applied after transpose. I even added the filter tool to test it.

 

 

Labels