In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Can't figure out the solution for my requirement.

kapilthakur
7 - Meteor

 

 

I have requirement where I am trying to get the count of employees based on different department and different dates.

So twist is that the same employee is working with two different groups and I need to get the count for him in both the group (number of days worked)

 

Emp_idDeptDateLocation 
879362FCD19/10/2023Mumbai 
879362FCD20/10/2023Mumbai 
879362CTO21/10/2023Mumbai 
879362CTO23/10/2023Mumbai
879362CTO22/10/2023Mumbai 
626866MAP19/10/2023

Mumbai

 

So as you see I have shown the occurance of the employee 879362 is appearing for two different group and I need a count of his occurance and the output should show only maximum occurrence value.

 

Expected output would be like 

Emp_idDeptCountLocation 
879362CTO3Mumbai
626866MAP1Mumbai
3 REPLIES 3
kapilthakur
7 - Meteor

It would be grateful of you if some share the snapshot with logic because I don't have laptop with me as of now. 

SPetrie
13 - Pulsar

Summarize on all the columns and add a count. Sort it by empid and count and a unique tool to remove any duplicated employee ids.

snip.PNG

flying008
15 - Aurora

Hi, @kapilthakur 

 

Another way maybe so easy:

 

录制_2023_10_20_08_43_54_233.gif

Labels
Top Solution Authors