Important Community update: The process for changing your account details was updated on June 25th. Learn how this impacts your Community experience and the actions we suggest you take to secure your account here.

Alteryx Designer Desktop Discussions

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

Formula for grouping different work hours

BJSOON
8 - Asteroid

Hi I need help with a formula.  I need to capture the daily overtime hours into 2 buckets.  the rules are:

 

- first 3 hours outside of the daily ordinary working hours

- subsequent hours outside of the daily ordinary working hours

 

Ordinary working hours is defined as between 0700 hour to 1900 hour.  

 

Individual employee time sheets are entered on a daily basis and there can be multiple entries per day .  Example:

 

DateStart TimeEnd TimeTime Entry Type
2 Mar 202008:0012:00Working Hours
2 Mar 202012:0013:00Lunch break
2 Mar 202013:0021:00Working Hours
3 Mar 202006:0012:00Working Hours
3 Mar 202012:0012:30Lunch break
3 Mar 202012:3023:00Working Hours

 

In the example above, employee clocked 2 hours of overtime on 2 March under "first 3 hours". 

On 3 March, employee clocked 5 hours of which 3 hours fall under "first 3 hours" and 2 hours under "subsequent hours".  How do I reflect that in the workflow? 

 

Thank you in advance!

1 REPLY 1
kylemhabe
8 - Asteroid

Try this out.

Labels