Alteryx Designer Desktop Discussions

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

Copy Row Value after Union

JDong
8 - Asteroid

Hi All,

 

I have a union in my flow which is a combination of 4 outputs with same data structure.

 

 
 

 

Now in the next step I want to copy over just one line value to the similar lines on the other outputs

 

 

Union 1    
Column AColumn BValue 1Value 2Category
AppleOrange0.91.21
Strawberry 0.30.61
Banana 0.72.21

 

Union 2    
Column AColumn BValue 1Value 2Category
AppleOrange  2
Strawberry 3.34.32
Banana 1.63.42

 

Union 3    
Column AColumn BValue 1Value 2Category
AppleOrange  3
Strawberry 0.70.13
Banana 54.43

 

So as we see here the  split output is as follows and I want to copy or overwrite the values for Column A = Apple and Column B = Orange to union 2 and 3 from union 1

 

Desired output 

 

Column AColumn BValue 1Value 2Category
AppleOrange0.91.21
Strawberry 0.30.61
Banana 0.72.21
AppleOrange0.91.22
Strawberry 3.34.32
Banana 1.63.42
AppleOrange0.91.23
Strawberry 0.70.13
Banana 54.43

 

Thanks for the help in advance

14 REPLIES 14
Emil_Kos
17 - Castor
17 - Castor

Hi @JDong,

 

It would be easier for people on community to help you if you will provide us with the expected output. 

For me it is a little bit unclear what is the desired output. 

 

If you could share that would be awesome! 

JDong
8 - Asteroid

Thanks...I just updated the question and hope it helps !

atcodedog05
22 - Nova
22 - Nova

Hi @JDong 

 

Here is a workflow for the approach. Hope this meets

 

Output:

atcodedog05_0-1602147108476.png

Workflow:

atcodedog05_1-1602147141105.png

 

Hope this helps 🙂

 

If this post helps you please mark it as solution. And give a like if you dont mind 😀

Emil_Kos
17 - Castor
17 - Castor

Hi @JDong,

 

Please find attached alternative solution:

 

Emil_Kos_0-1602147608438.png

 

JDong
8 - Asteroid

Works well now ! 

 

@atcodedog05 one question is when the field is a V_Wstring it does not copy the values. Works fine on numeric field.

 

Anyway I can sort this please.

 

Thanks in advance !

 

 

atcodedog05
22 - Nova
22 - Nova

Sure definitely feel free

 

Happy to help 🙂

 

Cheers and happy analyzing 😀

atcodedog05
22 - Nova
22 - Nova

Hi @JDong 

 

It should work. Can you show a example of the issue i will be able to help you out better.

JDong
8 - Asteroid

Hi @atcodedog05 

 

If the data is in this format 

 

Union 1    
Column AColumn BValue 1Value 2Category
AppleOrange0.90 €1.20 €1
Strawberry 0.30 €0.60 €1
Banana 0.70 €2.20 €

1

 

For some reason, It does not work

Emil_Kos
17 - Castor
17 - Castor

Hi @JDong,

 

My solution should work for string format as well. 

Labels