Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

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 #35: Data Cleansing Practice

NaiLo
8 - Asteroid

  

vsetia46
7 - Meteor
Spoiler




More than 8 and 6 length casesMore than 8 and 6 length casesRemove ID at the endRemove ID at the endRemove Leading 0 and descriptive textRemove Leading 0 and descriptive textRemoved Leading ZeroesRemoved Leading Zeroes

Very Interesting Problem, How Can I Do It Better ?

jyojyoti
6 - Meteoroid

Hi,

Here you go

jguerrero
Alteryx
Alteryx

My solution:

balajilolla
8 - Asteroid

 

 

Spoiler

Solution Attached

balajilolla_0-1590078882091.png

 

izamryan
8 - Asteroid

RegEx is your friend, I recommend my fellow Alteryxers to check this out:

 

https://regexr.com/55545

 

You can use GitHub to sign in

 

Spoiler
izamryan_0-1590156506521.png


My regexs to solve were:

.*(\d{4}).*

(0*)(\d*)
and strip out the 1st token, just take the 2nd token

(ID)$
strip out the string "ID" from every line

\w{8}
this needs to be paired with a formula before:
IF Length([Safety Code])<8 THEN "SC"+[Safety Code] ELSE [Safety Code] ENDIF

deviseetharaman
11 - Bolide
Spoiler
 
deepaksaldanha
6 - Meteoroid

Solution to challenge 35.

Bonero
6 - Meteoroid

my solution

Ashley_Grimes
7 - Meteor

Be well!