Alteryx Designer Desktop Discussions

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

How to replace value from One cell to Antoher based on Conditions

Gsiva3
8 - Asteroid

I Have a column named A with values like 0,1,2,3,4 and I have a column named B with values like AAAAA,BBBBB. So much desired output is the the 1st string in column B should get 1st string from Column A and 2nd string in Column B should get 2nd string from Column A.

Can you please help me on this.

 

Input Output 
AB ABResult
0,1,2,3,4,5,A,B,C,D,ZAAAAA,BBBBB 0,1,2,3,4,5,A,B,C,D,ZAAAAA0
   0,1,2,3,4,5,A,B,C,D,ZBBBBB1
8 REPLIES 8
Qiu
21 - Polaris
21 - Polaris

@Gsiva3 
Can not be sure without seeing your real data, but just give a try.

0711-Gsiva3.png

Gsiva3
8 - Asteroid

Thanks @Qiu 

I hope you have got the result column by subtracting the record ID column, but the requirement is I need the value from Column A to the Result column

Qiu
21 - Polaris
21 - Polaris

@Gsiva3 
I only use the RecordID number as an index to retrieve the value from Column A, if you check my workflow. 😁

Gsiva3
8 - Asteroid

Hi @Qiu 

But I need the Value from Column A to be popualted to Results Column,

Say for example if Column A has "A,Z,C,D" then the result column should have "A" & "Z" respectively.

Gsiva3
8 - Asteroid

Please find the sample data below.

 

Input
AB
Z,CD,0,1,W,RAAAAA,BBBBB
  

 

Output 
ABResult
Z,CD,0,1,W,RAAAAAZ
Z,CD,0,1,W,RBBBBBC
Qiu
21 - Polaris
21 - Polaris

Why just test the workflow with your new data? ☹️
it seems to be working to me...

0711-Gsiva3-A.png

Gsiva3
8 - Asteroid

Hi @Qiu 

I am not able to open your Alteryx workflow looks like you are using the latest version. Can you send me the openable workflow?

Qiu
21 - Polaris
21 - Polaris

It's just a simple formula try to type in which also help understanding 😄

Labels