Alteryx Designer Desktop Discussions

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

The "append fields" with unique id

chuntingsimonlo
6 - Meteoroid

I am studying my teammate alteryx program, there have two tables
one is look like this:

idamountcount
11231
2567

1

2321

1

 

and he just selected the unique id, then the table become like this:

id
1
2


and one is look like this:

countviollation
2Y
2N


After he use the "append fields" to combine two table, the output should be like this right:

idcountviollation
12Y
12N
22Y
22N


But don't know why, the output is look like this: 

idcountviollation
12Y
12N


Can anyone tell me whats going on? Thanks.

12 REPLIES 12
JosephSerpis
17 - Castor
17 - Castor

Hi @chuntingsimonlo when I use the append tool I get the output you describe.

 

Append_16012023.JPG

 

I only get the output you describe by using a join tool with the configuration on postion.

 

Join_postion160123.JPG

FinnCharlton
13 - Pulsar

After a quick test this works as expected for me, can you provide some more details about what is going on?

FinnCharlton_0-1673861714531.png

 

chuntingsimonlo
6 - Meteoroid

chuntingsimonlo_0-1673861880596.png

Thanks for your reply,
i know that if using "join" the output table would be like my describe.
but it is using the 'append fields', that's why i want to know why.

ShankerV
17 - Castor

Hi @chuntingsimonlo 

 

The append fields tool works as expected.

 

ShankerV_0-1673861976231.png

 

To investigate more on this, can you please share some screenshots or the worflow.

But don't know why, the output is look like this: 

idcountviollation
12Y
12

N

 

Many thanks

Shanker V

chuntingsimonlo
6 - Meteoroid

Thanks for you guys reply,
i am sorry about i cannot show you guys the result, because the company policy.

Many thanks
Simon 

ShankerV
17 - Castor

Hi @chuntingsimonlo 

 

Here in the highlighted in Yellow, you have used IF statement.

 

It stores Y or N only, hence it is only 1 record created.

 

ShankerV_0-1673862221924.png

 

ShankerV
17 - Castor

Hi @chuntingsimonlo 

 

If count is >0, then it shows the value as Y which is Byte data stores as 1.

So the value stored in BFL_Violation is only Y or N, that is only 1 value at a time.

 

Hence you get the output. i.e the value out of IF statement stored as 1 gets append with the other two unique values.

 

idcountviollation
12Y
12N

 

Many thanks

Shanker V

chuntingsimonlo
6 - Meteoroid

Thanks, can i know more about that how alteryx to join them, because there should be no id as the joining key

ShankerV
17 - Castor

Hi @chuntingsimonlo 

 

As we have only one output, how you need the expected output.

Based on that can suggest the best possible way to join.

 

Many thanks

Shanker V

Labels