Weekly Challenge

Solve the challenge, share your solution and summit the ranks of our Community!
New content is available in Academy! You may need to clear your browser cache for an optimal viewing experience

Challenge #192: Crane Leasing

Highlighted
Fireball

A solution to last week's challenge can be found here

 

In this week’s challenge, a handyman and local television star needs your assistance assessing his business using date/time analyses.

 

Bob, whose profession had been builder, decided to transition his business towards leasing construction equipment. Among other equipment, he has two cranes that he has been leasing for a while. He wants to get a better idea how his crane leasing business has been going.

 

Create a workflow that will show how many days both of his cranes have been leased at the same time during the years 2016-2018, the only years where he has a full set of data for both cranes.

 

Bob the Builder with Crane.jpg

Source: GIPHY

Highlighted
Asteroid

My solution attached.

Spoiler
192.png

 

Highlighted
Alteryx Partner
Spoiler
ss192.jpg
Pulsar

Here is my solution. 

 

Spoiler
sol.PNG
Highlighted
Magnetar
Magnetar

My solution! 

 

Spoiler
Pro Tip: Read ALL the instructions and understand what is in your data... Crane Status is apparently an important piece of information

WeeklyChallenge192.JPG

Cheers!

NJ

Highlighted
Alteryx Partner

Great practice parsing and manipulating dates with Alteryx!

Spoiler
192_AH.PNG
Highlighted
Asteroid

Yes we can!!! 

Spoiler
challenge_192_shvive.png

My DateTime field ended up being in String when I applied the formula initially and was getting so close yet no cigar till I debugged and switched the format. 

Highlighted
Quasar

Got a slightly different result until I looked at the data and realized that a crane could be both leased and something else on a given day.

 

Spoiler
Workflow 192.JPG

 

Highlighted
Asteroid

Probably could be done smoother, but hey it works.  

Spoiler
Capture.PNG
Highlighted
Spoiler
I love using the dateTimeParse inside a multi-field tool to handle multiple conversions and changing the field to a date type.
Annotation 2019-12-02 145033.jpg