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 ID | Date | Hours Charged | Standard Hours |
1 | 23-07-2021 | 4 | 2 |
1 | 23-07-2021 | 3 | 2 |
1 | 23-07-2021 | 3 | 2 |
1 | 23-07-2021 | 2 | 2 |
2 | 23-07-2021 | 4 | 2 |
2 | 23-07-2021 | 3 | 2 |
2 | 23-07-2021 | 3 | 2 |
2 | 23-07-2021 | 2 | 2 |
3 | 23-07-2021 | 4 | 2 |
3 | 23-07-2021 | 3 | 2 |
3 | 23-07-2021 | 3 | 2 |
3 | 23-07-2021 | 2 | 2 |
Any help will be really appreciated.
Amrit
¡Resuelto! Ir a solución.
Hi @Amrit_Sahoo , what would you expect the final output to look like? I'm not sure I understand fully.
Hi @Amrit_Sahoo
As @Luke_C suggested can you please provide the sample input and expected output so that we can help you better 🙂.
My Input would be
Emp ID | Date | Hours Charged |
1 | 23-07-2021 | 4 |
1 | 23-07-2021 | 3 |
1 | 23-07-2021 | 3 |
1 | 23-07-2021 | 2 |
2 | 23-07-2021 | 4 |
2 | 23-07-2021 | 3 |
2 | 23-07-2021 | 3 |
2 | 23-07-2021 | 2 |
3 | 23-07-2021 | 4 |
3 | 23-07-2021 | 3 |
3 | 23-07-2021 | 3 |
3 | 23-07-2021 | 2 |
My output would be
Emp ID | Date | Hours Charged | Standard Hours |
1 | 23-07-2021 | 4 | 2 |
1 | 23-07-2021 | 3 | 2 |
1 | 23-07-2021 | 3 | 2 |
1 | 23-07-2021 | 2 | 2 |
2 | 23-07-2021 | 4 | 2 |
2 | 23-07-2021 | 3 | 2 |
2 | 23-07-2021 | 3 | 2 |
2 | 23-07-2021 | 2 | 2 |
3 | 23-07-2021 | 4 | 2 |
3 | 23-07-2021 | 3 | 2 |
3 | 23-07-2021 | 3 | 2 |
3 | 23-07-2021 | 2 | 2 |
My Input Looks Like
Emp ID | Date | Hours Charged |
1 | 23-07-2021 | 4 |
1 | 23-07-2021 | 3 |
1 | 23-07-2021 | 3 |
1 | 23-07-2021 | 2 |
2 | 23-07-2021 | 4 |
2 | 23-07-2021 | 3 |
2 | 23-07-2021 | 3 |
2 | 23-07-2021 | 2 |
3 | 23-07-2021 | 4 |
3 | 23-07-2021 | 3 |
3 | 23-07-2021 | 3 |
3 | 23-07-2021 | 2 |
The expected output is
Emp ID | Date | Hours Charged | Standard Hours |
1 | 23-07-2021 | 4 | 2 |
1 | 23-07-2021 | 3 | 2 |
1 | 23-07-2021 | 3 | 2 |
1 | 23-07-2021 | 2 | 2 |
2 | 23-07-2021 | 4 | 2 |
2 | 23-07-2021 | 3 | 2 |
2 | 23-07-2021 | 3 | 2 |
2 | 23-07-2021 | 2 | 2 |
3 | 23-07-2021 | 4 | 2 |
3 | 23-07-2021 | 3 | 2 |
3 | 23-07-2021 | 3 | 2 |
3 | 23-07-2021 | 2 | 2 |
@christine_assaad I don't want to use summarize tool since there are other dependants. I am looking for a solution by using multi row formula.
My Input is till hours charged. I need the standard hours which is 8 per day to be equally divided to each row based on Emp ID & Date.
Input
Emp ID | Date | Hours Charged |
1 | 23-07-2021 | 4 |
1 | 23-07-2021 | 3 |
1 | 23-07-2021 | 3 |
1 | 23-07-2021 | 2 |
2 | 23-07-2021 | 5 |
2 | 23-07-2021 | 3 |
2 | 23-07-2021 | 3 |
3 | 23-07-2021 | 4 |
3 | 23-07-2021 | 3 |
3 | 23-07-2021 | 3 |
3 | 23-07-2021 | 2 |
3 | 23-07-2021 | 1 |
I would need the output to be as below:
Emp ID | Date | Hours Charged | Standard Hours |
1 | 23-07-2021 | 4 | 2 |
1 | 23-07-2021 | 3 | 2 |
1 | 23-07-2021 | 3 | 2 |
1 | 23-07-2021 | 2 | 2 |
2 | 23-07-2021 | 5 | 2.67 |
2 | 23-07-2021 | 3 | 2.67 |
2 | 23-07-2021 | 3 | 2.67 |
3 | 23-07-2021 | 4 | 1.6 |
3 | 23-07-2021 | 3 | 1.6 |
3 | 23-07-2021 | 3 | 1.6 |
3 | 23-07-2021 | 2 | 1.6 |
3 | 23-07-2021 | 1 | 1.6 |
Hi @Amrit_Sahoo
Here's an example, I used summarize to get the count of records for each ID and use to split the 8 hours.
Usuario | Conteo |
---|---|
19 | |
15 | |
13 | |
9 | |
8 |