cancel
Showing results for
Did you mean:
Do you have the skills to make it to the top? Subscribe to our weekly challenges. Try your best to solve the problem, share your solution, and see how others tackled the same problem. We share our answer too.
Weekly Challenge
Do you have the skills to make it to the top? Subscribe to our weekly challenges. Try your best to solve the problem, share your solution, and see how others tackled the same problem. We share our answer too.
Unable to display your progress at this time. Please try again a little later, or contact an administrator if you continue to see this error.
Announcement | Get certified today - take the Alteryx Designer Core and Advanced exams on-demand now!

## Challenge #87: Losing Daylight

Sr. Instructional Designer

Welcome, @ukashi!  Glad to have another Weekly Challenger join the fun!

Alteryx Certified Partner
Spoiler

Interested to see how everyone else approached this as there are endless ways to do it.

Thanks,

Luke - Keyrus UK

Meteor

I went for a fairly spelled-out approach to make it well understandable. Interested in what others did.

Spoiler
Inactive User
Not applicable

Attached are my solutions to my first Weekly Challenge. I created two solutions; the first uses the existing data set and the second uses sunrise/sunset data from three cities around the world, including one that is the southern hemisphere. As such, the days in Johannesburg are growing longer as ours are growing shorter.  This is my first challenge and as such, I probably over-complicated the solutions. However, I had a fun time creating clean Data and DateTime fields.

Inactive User
Not applicable

I really like your spelled out approach. It was extremely easy to read and understand.

Quasar

Took a slightly different approach, and transposed the times into one column to parse and prep with one formula tool.

Spoiler
The trick to then calculating the length of daytime is to negate the sunrise, so that the cross tab tool is adding the negative sunrise and positive sunset. Joined back together.

Then my solution is like the others. Multi-Row, Union
Highlighted
Meteor

Enjoyed the other solutions and I went a slightly different direction, using the Running Total tool to show the cumulative minutes lost through each day of the month! I also used the Text to Column tool with multiple separators to pull out the time. Great challenge.

Sr. Instructional Designer

@Inactive User, congrats on completing your first Challenge!  Glad to have you joining in the fun!

Alteryx Partner

I tried to solve it, without Summarize Tool or DateTime Tool.

Spoiler

Meteor