Alteryx Designer Desktop Discussions

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

Update/replace value according to the condition

Rajakumaranakash
5 - Atom

Hi All,

 

I have 3 colums 'Server','ID' and 'In list'. The value of list is either 'Y' or 'N'. If at anytime the server is in the list i.e., 'Y' then all the related server rows of the list should be marked as 'Y'. Could someone help with the simplest solution for thisPlease see below for sample and expected result:

 

Sample

ServerIDIn list
S6500Y
S1121Y
S2123N
S3145Y
S4155N
S5189N
S1124N
S1155N
S1126N
S2114N
S3178N
S7197N
S4211N

 

Desired Output:

 

ServerIDIn listNew List
S6500YY
S1121YY
S2123NN
S3145YY
S4155NN
S5189NN
S1124NY
S1155NY
S1126NY
S2114NN
S3178NY
S7197NN
S4211NN
1 REPLY 1
Prometheus
12 - Quasar

@RajakumaranakashI used the Summarize tool to group by Server and create a concatenated list of Y and N for each server. After that, I used a Formula tool with a conditional expression to replace any value in "Concat_In list" that contains "Y". Then I joined it back to the original data on Server=Server.

Group by Server Concat List.PNG

New List.PNG

Join on Server.PNG

New List Output.PNG

Labels