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
Asteroid

Nice refresher in using

 

Spoiler

 

the Generate Rows tool with dates

challenge192.PNG

 

 

Highlighted
Alteryx Certified Partner
Alteryx Certified Partner

My solution.

 

Spoiler
03-12-_2019_07-29-29.png
Highlighted
Alteryx Certified Partner
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
Highlighted
Quasar

My solution:

 

Spoiler
Capture.JPG
Highlighted
Asteroid

My Effort

 

Spoiler
JamesCameron_0-1575360332819.png
Highlighted
Asteroid

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

 

Spoiler
Kucsi_0-1575365385725.png
Highlighted
Alteryx Partner

Here's my effort:

Spoiler
Challenge 192.png
Highlighted
Alteryx Certified Partner

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

 

Spoiler
192.jpg
Highlighted
Meteor
Spoiler
cdavis19_0-1575370719393.png
Highlighted
Asteroid
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