Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Community is experiencing an influx of spam. As we work toward a solution, please use the 'Notify Moderator' option on the ellipsis menu to flag inappropriate posts.
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 #41: Analytics PayPeriodCalc

gawa
16 - Nebula
16 - Nebula

I wanna get paid twice

Spoiler
image.png
gawa
16 - Nebula
16 - Nebula

Solution attached

Rana_Kareem
9 - Comet
Spoiler
Challenge 41.png

Dani_Lin
8 - Asteroid

solved

MDestra
8 - Asteroid

Challenge #41:

 

 

Spoiler
flow
challenge_41_start_file - MD.PNG

Formulas:

Spoiler

Give everyday a number:

Switch(DateTimeFormat([Start],"%a"),

       0,

       "Sun",0,

       "Mon",1,

       "Tue",2,

       "Wed",3,

       "Thu",4,

       "Fri",5,

       "Sat",6)

 

Formula for days diff:

IIF([Start]>[End],

    Null(),

    1 +

    ((DateTimeDiff([End],[Start],"days")*5 - ([StartWeekday]-[EndWeekday])*2) / 7) +

    IIF([EndWeekday]==6,-1,0) +

    IIF([StartWeekday]==0,-1,0)

)

 

 

 

lwolfie
11 - Bolide

Solved

Stacies
5 - Atom

Solved

MattPett
6 - Meteoroid

Very helpful, would love to go back and solve with RegEx tool!

Tgigs
8 - Asteroid

My solution attached

dwstada
11 - Bolide

my solution :)

 

Spoiler
c41.PNG