We’ve extended Inspire Early Bird Pricing until March 1. Register now and enjoy 20% off conference passes and 10% off training passes. P.S. Don’t forget to bring friends! When you sign up for five or more tickets, you get an extra 20% discount on conference passes. Learn more now.
alteryx Community

# 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.

## Challenge #35: Data Cleansing Practice

8 - Asteroid

solved using core tools

8 - Asteroid

RegEx tool is so useful. Now I like Alteryx more than Python because of annotation for RegEx patterns.

6 - Meteoroid

simple one

8 - Asteroid

Solution

5 - Atom

1) We can use either "select" tool by converting string to numeric value

or we can use formulas TRIMLEFT([Field1],"0") which will remove all zeros from the beginning

2) Same here we can use select of formula tool. but the easy way is to go with select tool and convert string to double or float which I did here

3) Using formula tool will be ideal in this case.

if Right([ID], 2) = "ID" then left([ID],Length([ID])-Length(Right([ID], 2)))
else [ID]
endif

4) same here use formula tool

if Length([Safety Code]) > 8
then Left([Safety Code], 8)
elseif Length([Safety Code]) < 8
then "SC" + [Safety Code]
else [Safety Code]
endif

11 - Bolide

7 - Meteor

Just learned about Regex on this one. I did not use it but it will be helpful in the future!

8 - Asteroid
Spoiler

Here's my solution.

7 - Meteor

Thank you for another great opportunity!

8 - Asteroid

Solved