Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Weekly Challenges

Solve the challenge, share your solution and summit the ranks of our Community!

Also available in | Français | Português | Español | 日本語
IDEAS WANTED

Want to get involved? We're always looking for ideas and content for Weekly Challenges.

SUBMIT YOUR IDEA

Challenge #192: Crane Leasing

dhtay
8 - Asteroid

Nice refresher in using

 

Spoiler

 

the Generate Rows tool with dates

challenge192.PNG

 

 

RolandSchubert
16 - Nebula
16 - Nebula

My solution.

 

Spoiler
03-12-_2019_07-29-29.png
Sebenius
8 - Asteroid
Spoiler
Sebenius_0-1575357893122.png

Generate Rows:
DateTimeParse([Start Date], '%m/%d/%y')
[LeasedDate] <= DateTimeParse([End Date],'%m/%d/%y')
DateTimeAdd([LeasedDate],1,'days')​

Filter:
DateTimeYear([LeasedDate]) > 2015
AND
DateTimeYear([LeasedDate]) < 2019
ddiesel
13 - Pulsar
13 - Pulsar

My solution:

 

Spoiler
Capture.JPG
JamesCameron
8 - Asteroid

My Effort

 

Spoiler
JamesCameron_0-1575360332819.png
Kucsi
8 - Asteroid

It's harder than it seems (for me sure) 😄

 

Spoiler
Kucsi_0-1575365385725.png
OllieClarke
15 - Aurora
15 - Aurora

Here's my effort:

Spoiler
Challenge 192.png
RWvanLeeuwen
11 - Bolide

Caveat: if a crane is leased and maintained on the same day, it is leased nontheless 🙂

 

Spoiler
192.jpg
cdavis19
7 - Meteor
Spoiler
cdavis19_0-1575370719393.png
mbogusz
9 - Comet
Spoiler
Note to self: check work in the DateTimeParse formula better because it doesn't give an error whether you use "%d/%M/%Y" (first attempt when trying to go off memory on the Date Time functions syntax), "%M/%d/%Y" (second attempt after reviewing solutions and changing mine in haste), or "%m/%d/%Y" (final working solution).

2019-12-03 07_31_44-Greenshot.png