Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
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 #359: Manipulating Dates

Tgigs
8 - Asteroid

My solution attached.

 

Step 1) extract the year using formula

 

tonumber(right([Date], 4))

 

Step 2) extract the month using formula

 

tonumber(replace(left([Date], 2), "/", ""))

 

Step 3) extract the quarter using formula

 

if [Month] in (1, 2, 3) then "Q1"
elseif [Month] in (4, 5, 6) then "Q2"
elseif [Month] in (7, 8, 9) then "Q3"
elseif [Month] in (10, 11, 12) then "Q4"
else "" endif

 

Step 4) concatenate the year and quarter using formula

 

tostring([Year]) + tostring([Quarter])

 

Easy problem since all dates are cleanly formatted. Unfortunately in the real world this is not always the case.

michael_apau
8 - Asteroid
 
 
 

Screenshot 2023-06-29 100714.png

jacobcarman
9 - Comet
Spoiler
Screenshot 2023-06-30 114551.png

Nice and easy

IanHealey
8 - Asteroid

Solution

Erin
11 - Bolide

Knew I could do it in one tool!

Mahmoud_Nasser94
7 - Meteor
Spoiler
Spoiler

Challenge #359-solution.PNG

alineruizcampos
8 - Asteroid
Spoiler
Screenshot 359.png

jflanigan
8 - Asteroid
Spoiler
image.png

 

DanielvanLeuzen
9 - Comet

my solution

JimmyNg
7 - Meteor

Good challenge.