Alteryx Designer Desktop Discussions

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

Completing table using values coming from a second table and common references.

julianveda
7 - Meteor

Hi community,

 

I have a hard time trying to put the information in column "F3" from the first table in the same column "F3" of the second table. There is a column in both tables that could be used as common key. The ides as you can see in the image is respect all the other cells in table two, just to put those missing values from table 1 into the table 2:

 

julianveda_0-1684831414770.png

 

Thanks for reading

 

11 REPLIES 11
binuacs
20 - Arcturus

@julianveda One way of doing this with the Find and Replace tool

binuacs_0-1684832045872.png

 

ShankerV
17 - Castor

Hi @julianveda 

 

One way of doing this.

 

ShankerV_0-1684833933252.png

 

Many thanks

Shanker V

ShankerV
17 - Castor

Hi @julianveda 

 

Step 1: Input 1

 

ShankerV_0-1684834231212.png

 

Step 2: Input 2

 

ShankerV_1-1684834252259.png

 

Step 3:

 

ShankerV_3-1684834338360.png

 

 

IF IsNull([F3])
THEN [Instruction]
ELSE [F3]
ENDIF

ShankerV_4-1684834353313.png

 

 

Step 4:

 

ShankerV_5-1684834402124.png

 

 

ShankerV_6-1684834411867.png

 

 

Many thanks

Shanker V

julianveda
7 - Meteor

Hi,

 

Thank you for yoir answer. I have a small question: why put "!IsEmpty([Instructions])" in the formula tool ?

 

I used a formula tool (not visible in the image) this time taking out "!IsEmpty([Instructions])" and it also worked

 

julianveda_0-1684840690961.png

 

julianveda
7 - Meteor

@ShankerV ,

 

Thank you for your answer. Unfortunately, when I tried to reproduce it, I did not get a good result. Please see the picture below and you'll see that the three names with the red flag  do not correspond to the original names (Nmae 26, Name 27, Name 28). As you can notice, a part of the name has been left out.

 

julianveda_0-1684841675325.png

 

binuacs
20 - Arcturus

@julianveda If you look at the instruction fields there are NULL values, the isEmpty() function can check for NULL as well as Blank values, If the Instruction field is NULL then I don't want to write anything on that row, that is why I put !isEmpty([instruction]), in this case the formula will only consider if the instruction field has some value and leave the NULL rows as it is

binuacs
20 - Arcturus

@julianveda You need to increase the size of the field F3 using a select tool

julianveda
7 - Meteor

Thank you @binuacs . I would like to ask you a final question about this situation:

 

Do you know how to make things more dynamically ? I mean, the column created after the replace tool ("F5") will change name depending on the number of columns I have in my file. I did a test on my original data and this created field that had the name "F9_2" automatically created by Alteryx. In this case I would need to come back to the flow and modify it putting [F9_2] istead of [F5] in the replace tool. I would prefer something more dynamically. Do you knos if is there anyway to do this?

 

ShankerV
17 - Castor

Hi @julianveda 

 

When you have replicated my workflow as it has only Name because of the Field length.

 

Use select tool to increase the size of the column. It will resolve the issue.

 

ShankerV_0-1684844621010.png

 

 

Many thanks

Shanker V

Labels