Free Trial

Alteryx Designer Desktop Discussions

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

How to concatenate and then union these 2 files together wout nulls/blanks etc

Hi2023
8 - Asteroid

I have concatenate the rows into 3 diff columns

 

Substring (aci_number, 0,10)

 

aci_number + acct_number 

 

aci_number + acct_number + amt_number 

 

but one file the aci  has blanks so I added a filter to filter out nulls (didnt work) 

the amt_number on both files format is different so I am not quite sure how to clean this part out as well

 

the results after the concatenate should only add actual #s not any blanks /nulls to those 3 columns because after this I am checking for those 3 types of duplicates but it is picking up the blank and making duplicates when they should not be duplicates

 

ex.

aci_number + acct_number    the aci_number is blank but its showing -12345 is a duplicate with -12345 which is NOT correct because it is not a duplicate of 2 categories only 1(acct_number)

 

how do I fix this?

 

thanks

 

dummy data attached

3 REPLIES 3
ShankerV
17 - Castor

Hi @Hi2023 

 

I have seen both the input files and unable to derive the logic explained to concat.

 

Could you please explain with an output expected.

 

Here are the input:

file 1

aci_numberacct_numberamt_totalnameaddresstypestatus
 8370270086700jam123 staopen
04444224148370270086700joe123 stbclosed
039193053231492.36jell123 stcopen
0391930533###########31492.36mell123 stdclosed
022048210980938817100396.9abc123 ste 

 

file 2

controlffer dateaci_numberacct_numberamt_totallocname
110/02/202000012345600012688887500miamismith
210/02/2021000125678900012222212011.1nycjane
310/02/202200012987650001987655000denverdoe
410/02/2023000120045000129999921586.26miaminoa

 

Please share togic to combine both files and expected output.

 

Sharing expected output will help to understand the issue better and help to build solution.

 

Many thanks

Shanker V

 

 

 

 

Hi2023
8 - Asteroid

I am going to union them together so I dont need a unique identifier for that but it would the ACI # 

 

this is a 2 part question:

 

first how to clean or make sure it will concatenate correctly (they are VStrings)

 

then when I am finding duplicates within both files---it is picking up the blanks -nulls-0 etc which I think is the real problem 

 

I updated the files to possible help.

 

exmaple of expected output

 

0444422413-0001268888-7500
aci -acct number-amt

that is a duplicate


-0001268888-7500 (for finding duplicates within files after a union)
aci is blank so no # just a -  and if it finds another one with aci blank it thinks its a duplicate so I getting the wrong dup count

 

 

same thing below-

0444422412-126888-0
ACI-ACCT NUMBER-AMT

 

(when doing the second part after union) I am trying to find the duplicates against aci and acct #s and amts not 0 or blanks, what is best way to get rid of them or so it wont pick them up at all for the second part?

 

if it finds 2 of the 

0444422412-126888-0

it states duplicates but its not because the zero shouldnt count it has to be matching in all those 3 categories ACI, ACCT_number, and AMT

 

 

hope this makes sense

Hi2023
8 - Asteroid

I was able to figure it out -thanks!

Labels
Top Solution Authors