Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Condition Row Insert

mroker
6 - Meteoroid

hello! I am having a problem with trying to create a row based on a condition and hoping someone can help me.

 

 

idDateTimeTimeSlotSeconds
5410:0110:004200
6510:3510:303
6711:0611:0098

 

In the above table, I want to create a row for every time more than 1 hour. For example, id 54 has 4200 seconds so another row should be created with the same id in the 10:30 timeslot and the seconds subtracted.

 

idDateTimeTimeSlotSeconds
5410:0110:004200
5410:3110:30600
6510:3510:303
3 REPLIES 3
Qiu
20 - Arcturus
20 - Arcturus

@mroker 
Hope this is what you need.

If you do, appreciate if you would mark it as acceptable.

1030-mroker.PNG

RobertOdera
13 - Pulsar

Hi, @mroker 

 

Looking at your question below, I also wonder whether:

  • you need to adjust DateTime and TimeSlot (to account for the additional hour block of elapsed time within the same ID)
  • you need to adjust for Seconds (since every hour block of elapsed time within the same ID, except the last one, is 3600 seconds)

If you've answered yes to the above, then kindly consider the approach below.

 

Please like + mark as an acceptable solution, if this works for you.

 

RobertOdera_0-1604064556197.png

 

The workflow is attached.

Cheers!

RobertOdera
13 - Pulsar

Thanks for your favorable response @mroker 

Please let me know if you need anything else. Cheers!

Labels