Alteryx Designer Desktop Discussions

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

Find How many Employees are using the same account number

hemant86
11 - Bolide

HI All,

 

I need to pull a report of how many employees are using a single account at present date. Please find the sample table below. If I had to do it on excel the I would put a filter on column Account Number and if the count of rows is >=2 then I would pull that data. Any help will be greatly appreciated.

 

Empl IDAutolinkPay GroupAccount NumberEffective Date
100447605Y1K111110/30/2019
20061386WLQ111107/17/2019
300465835Y1K222211/07/2019
400325790Y1K222208/30/2019
500325790Y1K222209/21/2019
600325790Y1K333309/24/2019
700325790Y1K333310/11/2019

 

expected output

 

Empl IDAutolinkPay GroupAccount NumberEffective Date
100447605Y1K111110/30/2019
20061386WLQ111107/17/2019
300465835Y1K222211/07/2019
400325790Y1K222208/30/2019
500325790Y1K222209/21/2019
10 REPLIES 10
Qiu
21 - Polaris
21 - Polaris

@hemant86 
why Account#3333 is not included in the output?

Qiu
21 - Polaris
21 - Polaris

@hemant86 
Assuming there is a typo for account#3333. then we can try this.

0204-hemant86.PNG

sazit
6 - Meteoroid

Hey Hemant, 

 

Based on your question, if you want to filter for account numbers that appear twice or more than twice, the account 3333 should also be filtered through? Do let me know.

 

But if it is the case that you simply want to filter for records with account numbers appearing more than once then you would use a summarize tool and group by account number while also counting the account number. Then filter for count > 1 and join with the main data stream taking. Find below an example workflow. Hope this helps.

hemant86
11 - Bolide

Hi Qiu,

 

Sorry my bad. Let post the sample data again. So there can be duplicate rows as well.

 

Empl IDAutolinkPay GroupAccount NumberEffective Date
100447605Y1K111110/30/2019
20061386WLQ111107/17/2019
300465835Y1K222211/07/2019
400325790Y1K222208/30/2019
500325790Y1K222209/21/2019
600325790Y1K333309/24/2019
600325790Y1K333310/11/2019

 

OutPut

 

Empl IDAutolinkPay GroupAccount NumberEffective Date
100447605Y1K111110/30/2019
20061386WLQ111107/17/2019
300465835Y1K222211/07/2019
400325790Y1K222208/30/2019
500325790Y1K222209/21/2019
hemant86
11 - Bolide

Thanks sazit for your response. That was a typo.Just responded to Qiu with corrected values

Qiu
21 - Polaris
21 - Polaris

@hemant86 

So the Empl ID has to be unique.

0204-hemant86-1.PNG

sazit
6 - Meteoroid

@hemant86 

 

You just have to group by the fields you want to be unique and only select the ones that come up once and join back on both of them too. Attached is the sample wf

hemant86
11 - Bolide

Thanks for the quick response Qiu. I'm new to Alteryx and might be asking armature questions. Is it possible to get the output in the below format.  

Input remains the same.

 

Expected Output:

Record NoAccount NumberCount-EmpEmp ID1Emp ID2Emp ID3
111112100200 
222223300400500

 

Emp ID column should be scalable since the count will keep changing

Qiu
21 - Polaris
21 - Polaris

@hemant86 

You should have mentioned me so I could notice earlier.
Hope I can get another accept mark from you😁

0204-hemant86-1.PNG

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels