Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Are values within a group equal

Masond3
8 - Asteroid

Hi All, 

 

Hoping to pick you brains on best approach 

 

Aim : For given ID I need to check if the values match and if its matches then then flag them as "Yes" if not equal then "No".

 

Currently : I have two data inputs, in both Inputs i have two columns (Id & ,Name), I have union'd the two data sets together

 

Input A

IDName
11111Masond3
22222Apple Inc

 

Input B

IDName
11111Masond30
22222Apple Inc

 

 

Union Output 

IDName
11111Masond3
11111Masond30
22222Apple Inc
22222Apple Inc

 

 

Expected outcome 

 

IDNameName Match
11111Masond3 
11111Masond30No
22222Apple IncYes
22222Apple Inc 

 

14 REPLIES 14
Christina_H
14 - Magnetar

How about a distinct count of names?

image.png
Masond3
8 - Asteroid

@Christina_H i thought about that option, however i am thinking of scalability.

At the moment we have two inputs(this potentially going to expand to 10). It is possible that an ID, wont be in the other 9 sources, so doing a distinct count, i dont think would work ? ( could be mistaken though)

Christina_H
14 - Magnetar

What do you want to happen if the ID is missing from some of the sources?

 

In this version, if the ID isn't in one of the sources it would still be labelled as True (there's exactly one variation of name for that ID).

Masond3
8 - Asteroid

@Christina_H  i think in this scenario, i cant evaluate it against another record, thereforei think the "Name match" would remain blank

The overall goal, is to flag records where this mis-matches, ( therefore i think there would need to be a minimum of two in a group ie iD) 

Christina_H
14 - Magnetar

OK, how about adding a regular count as well as the distinct count?  Name Match can then be reset to null if count=1

 

image.png

Rana_Kareem
9 - Comet

Hi @Masond3 ..

 

You can try this method.

 

Matching.png

 

Hope it helpful..

Masond3
8 - Asteroid

@Christina_H  I think you are along the right lines. so the way i see the "Name match" in this scenario is that its flagging a group, is there a way on top of this to call out exactly row would be mis-matched within that group,( if i indicated what input trumps input, ie input A always supersedes input B. so in the scenario of masond3 vs Masond30, Masond30 would be the one which is incorrect, as it should align to masond3

Christina_H
14 - Magnetar

So something like this?

image.png

Masond3
8 - Asteroid

@Christina_H 100% thats the exact outcome i would want !can you share your wf?

Labels
Top Solution Authors