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

TonyaS
Alteryx
Alteryx
Spoiler
tsmith2_0-1572462515112.png
Tonya Smith
Sr. Technical Product Manager, cloud App Builder
Borja_Leiva
7 - Meteor
 
DfloDBDB
7 - Meteor

This is my solution. I am not too sure of the last one but it yield the result.

drmickelsen
5 - Atom

Seems to produce the answer with minimal steps

RobertW
Alteryx
Alteryx
 
jeng
8 - Asteroid
Spoiler
jeng_0-1572592269796.png
harish_ramkumar
5 - Atom

Hello,

 

Kindly find my solution below.

 

Thank you

-Harish

apabonok
8 - Asteroid

Hi. This is my solution. 

About 3rd point (If the data value ends with ID, remove the ID), I have done 1 additional output without ID word.

Snare
8 - Asteroid

Solutions below:

Spoiler
Snare_0-1573143932120.png

1. Select statement to convert string to number - automatically drops leading 0.

2. Data Cleansing (it is "Data Cleansing Practice" after all) to remove anything except numbers then, same trick as 1 above, Select.

3. Formula using TrimRight to remove trailing ID.

4. Formula using nested IF to only keep 8 characters AND to append leading SC for strings equal to 6 characters.

Inactive User
Not applicable