Free Trial

Alteryx Designer Desktop Discussions

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

Help required on filter/join

Chelseaa
7 - Meteor

Hi all! I would really appreciate some help on this:

 

IDNameProject
1MaryA
1SamB
1DannyD
2TomA
2AnnaA
3PolinaC
4NickD

 

I would like to filter out all the Project As, however, each person is being grouped under an ID and if anyone in that ID is in Project A, i would like to have all of them under that ID to be filtered out as long as someone in that ID is under project A.

 

My desired output is:

IDNameProject
1MaryA
1SamB
1DannyD
2TomA
2AnnaA

 

I have tried to first filter out those in Project A, then use a Join tool to get the rest of the people out under the same ID but it is not working and there are missing output from my L, J and R

 

Please help! Thanks alot in advance 🙂

3 REPLIES 3
AngelosPachis
16 - Nebula

Hi @Chelseaa ,

 

I've mocked up a workflow that returns the output you were asking for. I used a summarise tool to concatenate all projects in each ID, and then I filtered those not containing an "A" before joining to your main data.

 

Screenshot 2020-11-13 084713.jpg

 

So out of your J output anchor you have your desired output and out of the R output anchor the ID that don't have an "A" as a project.

 

Hope that helps.

 

Regards,

 

Angelos

jdunkerley79
ACE Emeritus
ACE Emeritus

This should do what you want:

jdunkerley79_0-1605257427402.png

 

- First filter to just Project A

- Get the unique IDs (I used a summarise to do this)

- A Join tool then can be used to filter down to just those projects

 

Sample attached

 

atcodedog05
22 - Nova
22 - Nova

Hi @Chelseaa 

 

Here is a workflow for the task.

Workflow:

atcodedog05_0-1605257606081.png

 

Hope this helps 🙂


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

Labels
Top Solution Authors