Alteryx Designer Desktop Discussions

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

Exceeding Max Visit Duration

Grantham
6 - Meteoroid

Good day All 

 

Please can you assist. 

 

Below is visit data from one of our Sales Reps. The Rep forgot to log out of the call. The Max allowed duration is 2hours per call.

 

 

Acc no.Acc Name Visit No.Start TimeEnd TimeDuration 
112233ABC StoreV00012022/06/28 11:002022/06/28 14:00180
445566XYZ StoreV00022022/06/28 14:502022/06/28 15:3040
100025Happy barV00032022/06/28 16:002022/06/29 02:00600

 

Please help me get to below result. 

 

Acc no.Acc Name Visit No.Start TimeEnd TimeDuration End Time (Adjust for Max Duration)Duration Adj
112233ABC StoreV00012022/06/28 11:002022/06/28 14:001802022/06/28 13:00120
445566XYZ StoreV00022022/06/28 14:502022/06/28 15:30402022/06/28 15:3040
100025Happy barV00032022/06/28 16:002022/06/29 02:006002022/06/28 18:00120
5 REPLIES 5
MarqueeCrew
20 - Arcturus
20 - Arcturus

@Grantham ,

 

 it may seem backwards, but

 

Min([duration],120)

 

 cheers,

 

 mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Qiu
21 - Polaris
21 - Polaris

@Grantham 
For the "End Time (Adjust for Max Duration) " part, we can use the DateTime Tool to the conversion from String to DateTime or the reverse.

0711-Grantham.PNG

Emmanuel_G
13 - Pulsar

Hi @Grantham ,

 

Find a really simple test to use with exact desired output.

 

Let us know if it works as you want.

 

Cheers !

Emmanuel_G_0-1657496999159.png

 

grazitti_sapna
17 - Castor

@Grantham, another way of solving this problem.

grazitti_sapna_0-1657518726336.png

 

Thanks!

Sapna Gupta
binuacs
20 - Arcturus

@Grantham one way of doing this

binuacs_0-1657523141858.png

 

Labels