Join the Alteryx Community’s Maveryx Summer Cup event! Compete, network with others, and earn your gold through a series of challenges from July 24th to August 11th. Learn more about the event here.

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 #10: Date Time Calculations

emily_cummings
6 - Meteoroid

solution:

Rob-Silk
8 - Asteroid

My solution below (two similar ways, but the seconds feels more elegant):

Spoiler
Both solutions use the DateTimeDiff() function, but the first uses the difference in seconds then works backwards from the number of days to the number of seconds, thereby requiring increasingly long formulae for each subsequent field, where as the second solution uses the difference in days, hours, minutes, seconds and applies the Mod() function to get the remainder for hours-to-seconds fields
challenge_10_RS_screencap.PNG
B_SarkadiNagy
6 - Meteoroid
Spoiler
2023-12-06_15h53_02.png
putu_w_erata
8 - Asteroid
Spoiler
Capture.JPG

caitlynmcintyre
9 - Comet

I added 41 seconds to my input so that i could validate it matched the output :)

 

Spoiler
10.png
phillipcjang
8 - Asteroid
Spoiler
challenge_10.png

Rohit_Pokhriyal
7 - Meteor

Thank you!

Tonio6789
8 - Asteroid

Challenge #10: Date Time Calculations

nikhil_jaju
7 - Meteor

Solution

SanjeevDosanjh
7 - Meteor
Spoiler
Screenshot 2024-01-04 141523.png