Alteryx Designer Desktop Discussions

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

Calculating KRI weights across the dataset

sriniprad08
11 - Bolide

Hi Team,

 

Hope you are well. I need help.

 

I need to add a column at the end based on the weights across each country. 

Please find attached  . Please let me know how to go about this,

 

Thanks and Regards,

Srinivas

sriniprad08_0-1649925772256.png

sriniprad08_1-1649925793007.png

 

2 REPLIES 2
binuacs
20 - Arcturus

@sriniprad08 One way of doing this

 

1. Keep your KRI Weigh values in separate input file and make sure the fields names are matching with the input file 

2. Transpose the first input file only the numeric fields in Data Columns and rest of the fields should be in the key columns

3. Join with the input 2 with the same field names of the numeric fields and the Name field from the Transpose tool

4. Sort based on the city

5. Add the formula tool to calculate the corresponding country risk by multiplying the KRI weigh and the input value

6. Take the total sum by grouping the city field 

7. join back with the input file with the key city

binuacs_0-1649928004885.png

 

sriniprad08
11 - Bolide

Hi @binuacs ,

 

Perfect. Thank you so much :)

 

Happy Easter.

 

Regards,

Sri

Labels