cancel
Showing results for 
Search instead for 
Did you mean: 

Challenge #26: Service Technician Travel Distance

GeneR
Alteryx Alumni (Retired)

Challenge #26: Service Technician Travel Distance

The link to last week’s challenge (challenge #25) is HERE

 

This week’s challenge is a use case faced by one of our customers that can leverage the geo-spatial tools available in Alteryx.  If you have the spatial data available you can output your results as drive-distance, in the event that you do not have the drive-distance data available, please use the straight-line distance.  The basic tools and setup of the data needed will be identical.  Output results will be provided for both methods.  In the event that you use drive-distance and your results vary slightly from the sample output, it may be due to variance in the data set used for the exercise.

 

Use Case:  in order to audit their employee expense reports, a service company would like to calculate how far (in miles) their technician is traveling from their hotels, to the worksite, then to their destination hotel on a daily basis.

 

The Data:  The source is collected in a way that record 1 contains the spatial object for the beginning hotel for day 1, record 2 is the spatial object for the worksite for day 1, and record 3 is the spatial object for the ending hotel for day 1.  This pattern repeats for three successive days.

 

Find the distance on a daily basis the technician is either driving or straight line distance if you don’t have the spatial data available.

 

Enjoy!

Attachment
Download this attachment
Attachment
Download this attachment
jennifer_owens
Asteroid

Re: Challenge #26: Service Technician Travel Distance

attached

Attachment
Download this attachment
chandler-gjino
Alteryx

Re: Challenge #26: Service Technician Travel Distance

Attaching my solution

Attachment
Download this attachment
lucascs
Asteroid

Re: Challenge #26: Service Technician Travel Distance

Spoiler
lucascs_0-1684339529930.png

 

Attachment
Download this attachment
tristank
11 - Bolide

Re: Challenge #26: Service Technician Travel Distance

Good practice with spatial data. Curious to see the min number of tools that were needed for this.

Should've cleaned up with the select tool my bad!

 

Spoiler
tristank_0-1685204919074.png
Attachment
Download this attachment
dougbaron
Asteroid

Re: Challenge #26: Service Technician Travel Distance

just used straight line

Spoiler
dougbaron_0-1685984038093.png

 

Attachment
Download this attachment
The_Rad_Valentina
10 - Fireball

Re: Challenge #26: Service Technician Travel Distance

Straight-Line was easy. Went with that. 

Attachment
Download this attachment
mindyzhang99
Asteroid

Re: Challenge #26: Service Technician Travel Distance

My Solution

mindyzhang99_0-1686188975149.png

 

Attachment
Download this attachment
MitchellBliesner
Asteroid

Re: Challenge #26: Service Technician Travel Distance

I wasn't able to get answers for drive time distance as my Alteryx only has TomTom AU data and gave me nulls. I did get the total distance for the route though. I hope this will still be accepted as a solution. 

Spoiler
MitchellBliesner_0-1686319789342.png

 

Attachment
Download this attachment
AndreeaS
Asteroid

Re: Challenge #26: Service Technician Travel Distance

Spoiler
Screenshot 2023-06-13 114351.png
Attachment
Download this attachment
RossKillington
Asteroid

Re: Challenge #26: Service Technician Travel Distance

Spoiler
Challenge 26 preview.png
Attachment
Download this attachment