Free Trial

Alteryx Designer Desktop Discussions

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

I have a problem to append dynamic columns using Find and Replace tool

KamalChoudhary
7 - Meteor

 

I'm using find and replace to append columns in Table1, Not sure how to append dynamic columns 

 

Problem = column are dynamic not fixed changed every time based on input ( using {Append fields to records} of find and replace tool)

 

 

 

 

Find column 2 i.e. ID

Table1

itemid 
123549
456666
7896614

 

and match  in Replace field  column 2 i.e. order-ID

Table2

Recordorder-ID1234567

1

549xyzabc     

2

666mhldef     
36614ghijakmnoqwetyuewsghj
4789pqrstu     

5

899fghklj     

 

Expected Result only ids which matching with table 2 append columns 

itemid 1234567
123549xyzabc     
456666mhldef     
7896614ghijakmnoqwetyuewsghj

 

9 REPLIES 9
atcodedog05
22 - Nova
22 - Nova

Hi @KamalChoudhary 

 

You can use join tool and check the unknown column option (refer to highlighted) this accommodates all the newly occurring columns.

 

atcodedog05_0-1643398609953.png

 

Hope this helps : )

KamalChoudhary
7 - Meteor

Hi @atcodedog05 ,

 

Thank you so much for your help,

 

Assume in table1 data which is not matching still get populated in the final result , we have tried using union to append row which is not matching.in join from table 1.

 

Is it viable or you can suggest some better workaround.

 

Any suggestion to get rid of (Warning: Union (7): The field "" is not present in all inputs).for columns which are not present in inputs, (refer to highlighted) 

 

updated

  Table1

itemid 
123549
456666
7896614
798777

 

KamalChoudhary_2-1643484118482.png

KamalChoudhary_0-1643483869144.png

 

 

KamalChoudhary
7 - Meteor

Hi @atcodedog05 

Thanks you very much for helping, 

Assume I want to keep the values of table 1 which are not matching, while joining the data,  we have have used union.

 

it is viable to use or any other workaround 

 

 

 

Updated Table1

itemid 
123549
456666
7896614
798777

 

Expected Result

temid 1234567
123549xyzabc     
456666mhldef     
7896614ghijakmnoqwetyuewsghj
798777       
KamalChoudhary
7 - Meteor

Hi @atcodedog05 

Thanks you very much for helping, 

Assume I want to keep the values of table 1 which are not matching, while joining the data,  we have have used union.

 

it is viable to use or any other workaround 

atcodedog05
22 - Nova
22 - Nova

Hi @KamalChoudhary 

 

Yes use union tool after join.

 

Hope this helps : )

Qiu
21 - Polaris
21 - Polaris

@KamalChoudhary 
Can you define what you mean by Dynamic? Column Name? Number of Columns?

KamalChoudhary
7 - Meteor

Hi @atcodedog05 ,

 

After using union toot we have noticed some data is missing, it there any specific reason ?

 

we are joining  left output  data with joined data 

atcodedog05
22 - Nova
22 - Nova

Hi @KamalChoudhary 

 

Your workflow should be something like this. Is this not working

 

atcodedog05_0-1643620616133.png

 

Hope this helps : )

 

Akash__on
8 - Asteroid

here the values in table 1 is less than table 2 and they are all matched so nothing is in the L output of the Join tool as shown by @atcodedog05 .

 

But suppose if anything is not matched it will come in the L and R output of the join tool which can again be used by union tool. as shown above. 

  • for dynamic inputs we leave one column blank. 

 

I hope you got the solution.

 

 

Labels
Top Solution Authors