Alteryx Designer Desktop Discussions

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

How to calculate Missing Employee Entries

Amrit_Sahoo
7 - Meteor

Hi Team,

 

Anyone can help me with to calculate the employee entries from a time sheet data.

 

Time sheet table:

Employee NameEmployee IDDateHours
A102-08-20218
B202-08-20218
A103-08-20218
B203-08-20218
A104-08-20218
A105-08-20218
B205-08-20218

 

In this table Employee B has missed to enter the hours for 4th August. So how do I calculate the Employee Name & id and missing date from the table.

 

My input files are

 

1. Timesheet Dump as like the table above

2. List of the employees.

 

Please help with the logic.

 

Thanks in advance.

 

Regards,

Amrit

3 REPLIES 3
atcodedog05
22 - Nova
22 - Nova

Hi @Amrit_Sahoo 

 

Here is how you can do it.

Workflow:

atcodedog05_0-1629049385860.png

 

1. Using summarize tool create list of unique dates.

2. Using append tool create combination of employees for each dates.

3. Using join multiple to do an outer join on Employee Name, Employee ID & Date. This adds the missing rows.

4. Using formula tool to replace nulls (new entries) with 8.

5. Using sort tool sort by date then by employee id.

 

Hope this helps : )

Amrit_Sahoo
7 - Meteor

Thanks a ton.

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @Amrit_Sahoo 

Cheers and have a nice day!

Labels