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

loop through ID's and get RAG details

Lumjing
8 - Asteroid

Hi 

 

Any help will be much appreaciated.I want to get the RAG details in RAG by ID column. From a group of same ID if for one of the ID "RAG" is RED then it should be "RED" or all. if no red then Yellow. Please see below details. Have thousands for which I have to loop through the ID's and get the RAG details 

 

 ID RAGRAG by ID 
12345GreyGreyIf "RAG" is "Grey" then "RAG by ID is "Grey"
12345YellowRedShould pick only red for ID -12345 from RAG column
12345GreenRed 
12345RedRed 
2345YellowYellowShould pick only yellow for -2345 from RAG column
2345GreenYellow 
2345GreenYellow 
66345GreyGrey 
66345GreenRedShould pick only yellow for - 66345 from RAG column
66345GreenRed 
66345RedRed 
2 REPLIES 2
jdunkerley79
ACE Emeritus
ACE Emeritus

I'd suggest:

jdunkerley79_0-1600868226717.png

 

- First map, Red to 1, Yellow to 2, Green to 3

- Find the minimum value by ID ignoring Grey

- Join this back to original data

- Correct the Grey rows

 

Sample attached.

 

Hope it helps

 

Lumjing
8 - Asteroid

@jdunkerley79. Thank you  yes it worked. Am now able to pick RED from a group of same ID  with RED, Yellow, Green and Grey.

Labels