Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

how best to count start/stop times for concurrency

mazeffa
5 - Atom

I have 5 million+ rows of appointment data (start/stop times) that I am looking to convert to 15 minute blocks to use for demand forecasting in scheduling.

 

Example:

 

Start time: 9:30

Stop time: 10:10

 

I am looking to populate columns 9:30-9:44, 9:45-9:59, 10:00-10:14  each with a one and the other 93 columns would have a zero for that particular row.

 

Thanks.

2 REPLIES 2
BenMoss
ACE Emeritus
ACE Emeritus

Hi!

 

Fun challenge! I created a scaffold of the different time ranges using the generate rows tool and the CEIL function before joining it with the main data stream.

 

Example workflow attached, please let me know if you have further questions.

 

Ben

danrh
13 - Pulsar

Definitely a fun one.

image.png

This will generate all the 15 minute increments in a day and place a 1 in each column where the range crosses. Take a look, see if it helps!

Labels
Top Solution Authors