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

Filtering Values in a Group_ID

Sarath27
8 - Asteroid

Hi All,

 

Please help me guiding to create a workflow for the sample data attached.

 

Description

Sample data attached were grouped by FULL_NAME,given Group_ID for the same.

 

Requirement

1. Each Group_ID has set of records, which any one of them has "5 CANADA SQUARE" in ADDR_LINE1 column, *but the requirement is* If the other addresses in the same group is Same/duplicate, then it should be labelled as "2".

2. If other addresses in the same group is Unique, then it should be labelled as "3".

 

Example for your reference ( And also I added detailed sample data use that as well if you need)

Group_IDFULL_NAMEADDR_LINE1Label (Required Output)
1S5 CANADA SQUARE2
1SAiy2
1SAiy2
2BBiy3
2B5 CANADA SQUARE3
2BDye3
3SCyr2
3S5 CANADA SQUARE2
3SCyr2
4ATemple3
4ATemple3
4A5 CANADA SQUARE3
4ABuel3
4 REPLIES 4
IraWatt
17 - Castor
17 - Castor

Hey @Sarath27,

I've attached a workflow which I think captures this logic:

IraWatt_0-1651960314970.png

If have any questions on how it works or any issues make sure to ask :) 

HTH,

Ira

 

IraWatt
17 - Castor
17 - Castor

Two questions I have is

why is cluster 76 labelled 3 in your dataset?

IraWatt_0-1651960554330.png

And cluster 82 has a mixture of labels?

IraWatt_1-1651960593770.png

 

Sarath27
8 - Asteroid

Hi @IraWatt  

Thanks much for your prompt response. Both the Clusters 72 &86 should be labelled as "2".  I labelled it manually so it might have been typed erroneously.

 

IraWatt
17 - Castor
17 - Castor

Hey @Sarath27,

No worries, Glad it worked ! :) 

Labels
Top Solution Authors