We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
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?

myastarling
Bólide

Here are two solutions - one that compares adjacent values, groups by those values and then sums based on those (good for a ginormous dataset) and one that creates all possible minutes when the light is left on and then counts the distinct values (good for smaller datasets).

106.png

martinson
Bólide

👾

Cheers,
martinson

LinkedIN

Bulien
Pilsner
Pulsar

My solution:

Saqueador
106.png

RebekaMazuchova
Asteroide

:)

Daniel_Homola
Asteroide

Here!

jaredcoffin
Meteoro

Calculated the differences with the Formula tool then correct the duration in the Multi-Row tool with two outcomes.

  1. First solution was to make a Lights On column with accumulation, correcting Duration.
  2. Second solution was to set Duration column to 0 if Exit times were earlier than their successor, and correct Duration to start at previous Exit time if current Enter > prev Exit. 
PuffinPanic
10 - Fireball
10 - Fireball

Got there eventually, but it definitely looks like I could do with working more with the datetime functions.

 

Don't panic - I've got Alteryx!
yazen
Meteoro
Saqueador
yazen_0-1754621496778.png

 

Volha
Asteroide
Saqueador
Volha_0-1756048853087.png