Important Community update: The process for changing your account details was updated on June 25th. Learn how this impacts your Community experience and the actions we suggest you take to secure your account here.

Alteryx Designer Desktop Discussions

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

Add data to a column based on another column values

SaiJanani
7 - Meteor

Hi,

Need help to get the below output. Thank you in advance.

 

Sample Input:

 

Col A/Col BCol CCol DCol ECol F
1123456ABC  
ABC123  AxNote 1
DEF187  AxNote 2
GHF197  AxNote 2
HML321  AxNote 2
LKH456  AxNote 1
LMB879  AxNote 1
     
*Note 1
**Note 2

 

 

 

Sample Output: Based on the Note in Col F, need to add * if it has Note 1 or ** if it has Note 2 to data in Col E

 

Col A/Col BCol CCol DCol ECol F
1123456ABC  
ABC123  Ax*Note 1
DEF187  Bx**Note 2
GHF197  Cx**Note 2
HML321  Dx**Note 2
LKH456  Ex*Note 1
LMB879  Fx*Note 1
     
*Note 1
**Note 2
4 REPLIES 4
Qiu
21 - Polaris
21 - Polaris

@SaiJanani

Maybe we can try like this?

1101-SaiJanani.PNG

atcodedog05
22 - Nova
22 - Nova

Hi @SaiJanani 

 

My take on this

 

Workflow:

atcodedog05_0-1635749851397.png

 

1. Using filter to split data and notes

2. Using regex tool to extract mark and notes

3. Using find and replace to do vlookup and map marks

4. Using formula tool to add the associated mark

5. Using selected tool to keep the required columns

 

Hope this helps : )

HomesickSurfer
12 - Quasar

Hi @SaiJanani 

 

Add the following formula expression to [Col E]:

 

IF [Col F]="Note 1" THEN [Col E]+"*" ELSEIF [Col F]="Note 2" THEN [Col E]+"**" ELSE [Col E] ENDIF

 

SaiJanani
7 - Meteor

Thank you all for the response.. HomesickSurfer's solution worked easily for me.. 

Labels