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
15 - Aurora
15 - Aurora

I wanna get paid twice

Spoiler
image.png
gawa
15 - Aurora
15 - Aurora

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
10 - Fireball

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