Pardon our dust - Alteryx Academy is under construction. Lessons and courses completed on Community from now until January 20th will not be recorded.
Start 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 #106: How Long were the Lights On?

StevenBetts
Asteroide

I used waaaaay too many formulae but I got there nevertheless

mickael_gest
Asteroide

My solution :)

 

 

 

Spoiler
challenge_106.PNG
terry10
Cuásar

 

Spoiler
Capture.JPG
SeanAdams
17 - Castor
17 - Castor

Love this - a "Gaps and Islands" challenge!

(the class of problems that deals with finding contiguous islands of data, or gaps)

 

Spoiler
i took a simple brute-force approach:
- generate 1 row per minute within the range
- Find unique
- count them

Gonna have a look at other solutions now for other ideas
mceleavey
17 - Castor
17 - Castor

Ha. I was stumped by a schoolboy error. Got there in the end.

 

Spoiler
I began by using DateTimeParse([Enter],"%I:%M %p") to convert both the Enter and Exit fields to a valid time format. I then used the "Generate Rows" tool to incrementally create each minute between the entry and exit times, and then fed this into a "Summarize" tool to count the distinct records. My logic was flawless, I was convinced, but then why was I getting more entries than the solution??

The equals sign. Remember not to double count the minute on exit! 
[Minutes]< [Exit_Time]

Once I noticed my schoolboy error, all was well.

Workflow.PNG
Results.PNG

That was more difficult than it needed to be. I need sleep.



Bulien

STate
Meteoro

This one took me three tries to find a good flow, what a great challenge!

gauravk
Meteoro

my solution

Wouter
Asteroide

My solution:

Spoiler
challenge_106.jpg
LauraScavino
Meteoro
Spoiler
Capture3.PNG

this one was very challenging!

 

JordyMicheal
Bólido

Generate Rows is a go!!!

I don't think @NicoleJohnson realizes what an Alteryx beast she is!!!

 

Congrats on Inspire and thanks for the tip on the tool