Alteryx Designer Desktop Discussions

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

Output required for Employee working in a specific group for maximum days

DeepikaK
5 - Atom

Requirement-
Required maximum count of days that employee worked in that business for that specific month

 

Emp IdBusiness groupStart dateMonth
123ABC10/1/20232023-Oct
123ABC10/2/20232023-Oct
123DEF10/3/20232023-Oct
123DEF10/4/20232023-Oct
123DEF10/5/20232023-Oct
234ABC10/1/20232023-Oct
234ABC10/2/20232023-Oct
234DEF10/3/20232023-Oct
456DEF10/1/20232023-Oct
456DEF10/2/20232023-Oct
123ABC9/1/20232023-Sep
123ABC9/2/20232023-Sep
123DEF8/3/20232023-Aug
123DEF8/4/20232023-Aug
123DEF8/5/20232023-Aug
234ABC9/1/20232023-Sep
234ABC9/2/20232023-Sep
234DEF9/3/20232023-Sep
456DEF8/1/20232023-Aug
456DEF8/2/20232023-Aug

 

Output required:

 

Please note- Output of maximum days should not be greater than 31 days of an employee

 

Emp IdBusiness groupStart dateMonthCount of days worked in month for that business groupMain output as Max count days ( Employee worked more in which business for that month)
123ABC10/1/202323-Oct2 
123ABC10/2/202323-Oct2 
123DEF10/3/202323-Oct33
123DEF10/4/202323-Oct3 
123DEF10/5/202323-Oct3 
234ABC10/1/202323-Oct22
234ABC10/2/202323-Oct2 
234DEF10/3/202323-Oct1 
456DEF10/1/202323-Oct22
456DEF10/2/202323-Oct2 
123ABC9/1/202323-Sep22
123ABC9/2/202323-Sep2 
123DEF8/3/202323-Aug33
123DEF8/4/202323-Aug3 
123DEF8/5/202323-Aug3 
234ABC9/1/202323-Sep22
234ABC9/2/202323-Sep2 
234DEF9/3/202323-Sep1 
456DEF8/1/202323-Aug22
456DEF8/2/202323-Aug2 

 

3 REPLIES 3
binuacs
20 - Arcturus

@DeepikaK What is the logic to calculate the fields Count of days worked in month and max days?

DeepikaK
5 - Atom

logic is based on employee worked in the number of business group.

Poizonhack
5 - Atom

Hi

Labels