ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more 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
16 - Nebula
16 - Nebula

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

Saqueador
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
Asteroide

My solution matches everyone else's!

 

Saqueador
Screenshot 2025-11-13 110424.png
Imaizumi
Asteroide

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

Saqueador
Imaizumi_0-1763002378827.png

 

RolandSchubert
16 - Nebula
16 - Nebula
Saqueador
496.png
JBevan89
Asteroide
Saqueador
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.

Saqueador
Challenge-496.png
balajilolla3
Meteoro
Saqueador
Solution Attached

Solution Screenshot Challenge 496 - BL.png
alacoume
Cometa

completed wthout matching the solution! 

Saqueador
Challenge496.jpg

 

abacon
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

 

Saqueador
WorkflowWorkflowTask 1Task 1Task 2Task 2
clewis28
Meteoroide
Saqueador
clewis28_0-1763051112904.png