Alteryx Designer Desktop Discussions

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

Selecting rows based on finding several values

AlteryxPrime666
7 - Meteor

Hello, I have the following input (table on the left). I need to process the data so the workflow will check if there are more than one "employee" (column Employee Status) for Team ID each and then select it's supervisor. The wanted output is on the right. Anyone know how this could be done? Thanks a lot in advance!  

RasmusEdlundPWC_0-1673255860916.png

 

7 REPLIES 7
grazitti_sapna
17 - Castor

@AlteryxPrime666 , Please find below the workflow to achieve your output. Please note I have just used 3 fields as per needed. But same can be applied to your data set as well.

 

grazitti_sapna_0-1673256848115.png

 

Sapna Gupta
ShankerV
17 - Castor

Hi @AlteryxPrime666 

 

Please find the expected output.

 

ShankerV_0-1673256937734.png

 

Input: I have created the input as you have shared in the sample dataset

 

ShankerV_0-1673257005814.png

 

 

If this helps, please like this post and mark it as a solution. If you have any other questions, please let us know.

 

Many thanks

Shanker V

 

Christina_H
14 - Magnetar

Here's a couple of quick ways of doing it.  If your data is always in the same order with the supervisor first you can use just Summarize and Filter to get the result.  Otherwise you need a few more to correctly identify the supervisor.

Christina_H_0-1673256966807.png

ShankerV
17 - Castor

Hi @AlteryxPrime666 

 

Step 1: Input

 

ShankerV_0-1673257059532.png

 

step 2: 

ShankerV_1-1673257078915.png

 

ShankerV_2-1673257089522.png

 

Step 3:

 

ShankerV_3-1673257134753.png

ShankerV_4-1673257144886.png

 

If this helps, please like this post and mark it as a solution. If you have any other questions, please let us know.

 

Many thanks

Shanker V

 

 

 

ShankerV
17 - Castor

Hi @AlteryxPrime666 

 

step 4:

ShankerV_0-1673257338940.png

ShankerV_1-1673257346303.png

 

 

step 5:

 

ShankerV_2-1673257361275.png

ShankerV_3-1673257369435.png

 

Step 6:

ShankerV_4-1673257380661.png

 

ShankerV_5-1673257394565.png

 

Output:

ShankerV_6-1673257413946.png

 

 

If this helps, please like this post and mark it as a solution. If you have any other questions, please let us know.

 

Many thanks

Shanker V

 

 

AlteryxPrime666
7 - Meteor

 Thanks a lot! This did the trick :) 

ShankerV
17 - Castor

Hi @AlteryxPrime666 

 

Glad to know it worked. 

Happy to help!!!

 

Many thanks

Shanker V

Labels