Alteryx Designer Desktop Discussions

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

HELP: How do I check the combination/permutation in a subset data is correct?

charles7yau
6 - Meteoroid

I have a subset of data that has various field. I need to make sure that my combination o field A-E in row 1, 2 and 3 matches to the master data.

What tool should I be using?

 

 Subset Data
 Field AField BField CField DField E
1     
2     
3     

 

 Master Data
 Field AField BField CField DField E
1     
2     
3     
4     
5     
6     
7     
8     
9     
10     

 

Thanks!

8 REPLIES 8
mceleavey
17 - Castor
17 - Castor

Hi @charles7yau ,

 

you could use the join tool and join on all fields you're trying to match.

Everything that comes off the J output matches.

 

If you post some data we can show you.

 

M.



Bulien

charles7yau
6 - Meteoroid

Thank you!

 

I have uploaded a sample.

 

First Tab: Subset

Second Tab: Master Data

apathetichell
18 - Pollux

Are you matching columns or data? Two sample data files will probably make a better illustration of how to match two datasets.

 

Field info both sets and join on name  and you can see that columns that aren't in both sets  will be under the right and left anchors

charles7yau
6 - Meteoroid

Hi,

 

Thanks for the information.

 

I am matching the field combination in the row. 

 

For eg row 1: Is the combination of account, cost center, entities, bank and description matching to the master file.

 AccountCost CenterEntitiesBank A/CDescription
122202211011SGDBSCash

 

 

 Master File
 AccountCost CenterEntitiesBank A/CDescription
122202223001USBOACash
222202211011SGDBSCash
322110210001USBOAPPE
422165511011AUCBAAP
5 10001AUDBSAR
640888123001AUCBAAR
760335123001AUCBAOPEX
865000333001AUCBAOPEX 2
965000433001SGDBSREV
1067116711011USBOAREV 2

Thanks,

Maskell_Rascal
13 - Pulsar

@charles7yau Are you attempting to validate an entry matches against a master file? If so, you can do this as both @mceleavey and @apathetichell have recommended with the Join Tool. Just specify the fields you want to match, and everything in the J output is what could be found. 

 

Kinda like this:

Maskell_Rascal_0-1623425943526.png

 

Cheers!

Phil

charles7yau
6 - Meteoroid

Hi,

 

Is there a way not to join the data, but to add a column at the back and say Yes it matches of No it doesn't?

 

Something like that

 Subset File 
 AccountCost CenterEntitiesBank A/CDescriptionMatch?
122202211011SGDBSCashY
222165510001AUCBAAPN
332020610001USBOAARN
apathetichell
18 - Pollux

Yes. and if you post two sample files @Maskell_Rascal @mceleavey or I could readily build a workflow to explain how to do this.

danilang
19 - Altair
19 - Altair

Hi @charles7yau 

 

The records that come out of the J anchor on Join are those that match on both sides of the input.  The records on the R and L anchors are the records from the R and L inputs that don't match.  You can use this to add in a match flag.  Just add a Formula tools with a Match? field with "Y" on the J anchor and another one for "N" on the L output

 

danilang_0-1623501379487.png

Union and sort and you have what you're looking for

 

danilang_1-1623501435708.png

 

Just make sure that the records in your master file are unique, or you'll have duplicate records coming out the J anchor

 

Dan

 

Labels