Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Adding Row(s) when Greater than 8 hours

KamenRider
11 - Bolide

Hi Guys,

 

Need help in adding the rows when the condition like:

 

1 If the requested hours is greater the 8 hours, it will add rows based on the number of days using the Absence Start Date and Absence End Date. So if the Start Date is 12-05-22 and end date is 12-08-22, this is equivalent to 4 days then 4 rows will be added.

 

2. If 8 or less than 8, information will be retain. We are talking about time offs and per day there is 8 hours for whole day and 4 hours if half day.

 

Attaching the raw file for your reference.

 

KamenRider_0-1676979081895.png

 

Below is the results I have in mind.

 

KamenRider_1-1676979153672.png

 

Hoping to hear for you guys to help in solving this case.

 

Thanks,

Kamen

 

3 REPLIES 3
ShankerV
17 - Castor

Hi @KamenRider 

 

One way of doing this!!!

 

ShankerV_0-1676979637189.png

 

Many thanks

SHANKER V

ShankerV
17 - Castor

Hi @KamenRider 

 

I noticed the sample data file was added, for that the output is same.

 

ShankerV_0-1676980290833.png

 

Many thanks

Shanker V

KamenRider
11 - Bolide

Hi @ShankerV 

 

Thank you. I think you nailed it.

 

Kamen

Labels
Top Solution Authors