Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

How to divide the standard hours into the rows?

Amrit_Sahoo
7 - Meteor

I want to feel standard hours of 8 into rows for each emp id and date. Find the below table where I want to create standard hours in alteryx.

 

Emp IDDateHours ChargedStandard Hours
123-07-202142
123-07-202132
123-07-202132
123-07-202122
223-07-202142
223-07-202132
223-07-202132
223-07-202122
323-07-202142
323-07-202132
323-07-202132
323-07-202122

 

Any help will be really appreciated.

 

Amrit

11 REPLIES 11
atcodedog05
22 - Nova
22 - Nova

Hi @Amrit_Sahoo 

 

This is more clear. Here is how you can do it.

 

Workflow:

atcodedog05_0-1627065639908.png

1. Using select tool to convert Emp ID to string. This will be useful for later mapping

2. Using summarize tool groupby Emp ID & Date to get count of rows.

3. Standard Hr is 8/[count].

4. Using find and replace mapping on Emp ID add  Standard Hours column to data.

 

Hope this helps : )

Amrit_Sahoo
7 - Meteor

Thanks @atcodedog05. Really appreciated

Labels
Top Solution Authors