In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities 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 #496: Create the Correct Code

Yoshiro_Fujimori
15 - Aurora
15 - Aurora

My solution.
Not matched with the expected result.
I'll wait for the solution next week.

Spoiler
Workflow
Challenge+496_workflow.png

Formula Tool #1
[Code2] = ReplaceChar([Code], "-_", "")
[Part1] = REGEX_Replace([Code2], "[\d].*", "")
[Part2] = REGEX_Replace([Code2], "^\u+", "")
[New Code] =
  [Part1] + "-" 
+ Left([Part2], 3) + "-" + Substring([Part2],3,2)
[New Code] =
  IF IsEmpty(Substring([Part2],5,1))

  THEN [New Code]
  ELSE [New Code] + "-" + Substring([Part2],5,1)
  ENDIF

Formulat Tool #2
[HasLetterSuffix] = IF REGEX_Match([Code], ".*\u$") THEN 1 ELSE 0 ENDIF
[Malformed] = IF [Code] != [New Code] THEN 1 ELSE 0 ENDIF


Formula Tool #3
[% of total with letter suffix] = ToString([Sum_HasLetterSuffix] / [Count] * 100) + "%"
[% Code Missing Delimiter] = ToString([Sum_Malformed] / [Count] * 100) + "%"

alineruizcampos
8 - Asteroid

My solution matches everyone else's!

 

Spoiler
Screenshot 2025-11-13 110424.png
Imaizumi
8 - Asteroid

Task 1 was completed, but need a minor correct. See solution

Task 2 I could finish the suffix, but percentage I dont quite get. Need to wait for solution

Spoiler
Imaizumi_0-1763002378827.png

 

RolandSchubert
16 - Nebula
16 - Nebula
Spoiler
496.png
JBevan89
8 - Asteroid
Spoiler
JB C496.png


Like everyone else, not sure on why question 2 has a different percentage.  Perhaps there is a logical reason?  because there it is a trick question, or is it just a mistype?

Qiu
21 - Polaris
21 - Polaris

I also abit off with the provided solution, but I think I am correct.

Spoiler
Challenge-496.png
balajilolla3
7 - Meteor
Spoiler
Solution Attached

Solution Screenshot Challenge 496 - BL.png
alacoume
9 - Comet

completed wthout matching the solution! 

Spoiler
Challenge496.jpg

 

abacon
13 - Pulsar

I also didn't get the answers to match the output but my answers matched everyone else's so I feel good with it. A fun one that make me brush up on some REGEX.

 

Bacon

 

Spoiler
WorkflowWorkflowTask 1Task 1Task 2Task 2
clewis28
6 - Meteoroid
Spoiler
clewis28_0-1763051112904.png