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 #2: Preparing Delimited Data

kmedici
8 - Asteroid
Spoiler
kmedici_0-1605690932973.png

 

shilpam15
7 - Meteor

done

Alhanooff
5 - Atom

Challenge 2 Solution 

joshbennett
11 - Bolide
11 - Bolide

Here is my solution - I just ended up using some back to back formulas to get the job done. 

 

DextersLaboratory_0-1606285643198.png

 

 

Minor clarifying question on the published solution - shouldn't 'Ignore delimiters in quotes' be checked in the Text to Columns tool, given the assumption in the background information given is that strings such as the Poem may contain delimiters within them? While no comma was included in the Poem part of the string in the two examples provided, if one were included in a different record of the same theoretical dataset, wouldn't the Text to Columns tool incorrectly split the string at the point of said comma (versus ignoring that comma because it is encapsulated within a string and not intended to be interpreted as a delimiter) based on the current tool configuration? Let me know if I am thinking about that incorrectly.

mbarot
6 - Meteoroid

Hello!

 

Here is my solution - 

1) Column to text - split the data into columns based on the comma delimiter

2) Data Cleansing - Removed punctuations from column1(Poem). Got rid of double quotes

3) Column to text - Split to rows, set delimiter to single quotes and checked the ignore delimiters in single quotes options

4) Select records - Entered row number 2 and 4 just to display the required rows

5) DateTime - custom dd-mon-yy

6) Select - Renamed columns and checked the required columns

7) Browse

alexnajm
16 - Nebula
16 - Nebula

Nice and easy to complete!

sgupta1
6 - Meteoroid

Interesting Exercise

jags91
7 - Meteor

Solution using -> "Text to Columns, DateTime & Select" tools.

Xiying
6 - Meteoroid

Done!

andrewdatakim
12 - Quasar
12 - Quasar

For this challenge I traded using the Text to Columns Tool for Regex and was able to accompish the parsing in 1 tool.

 

Spoiler
Solution:

Snag_b34f109.png

Regex Used: ["](.*)["][,](\d{3})[,].(\d{2}.\w{3}.\d{2}).
The brackets are used to identify a character listed specifically in a set. In this case for quotes and the comma. The second way I have remove the quotes is using the period, which just removes a single character in a specific place in this case the qoutes around the Poem_Read_Date. Another good component of this RegEx is the {}, which can be used to specific a specifc number of characters you would like to parse using the preceding arguement, in this case digits and words.

Snag_b37884e.png