Weekly Challenge

Solve the challenge, share your solution and summit the ranks of our Community!

Also available in | Français | Português | Español | 日本語

We're actively looking for ideas on how to improve Weekly Challenges and would love to hear what you think!

Submit Feedback
We've recently made an accessibility improvement to the community and therefore posts without any content are no longer allowed. Please use the spoiler feature or add a short message in the message body in order to submit your weekly challenge.

Challenge #2: Preparing Delimited Data

8 - Asteroid


7 - Meteor


5 - Atom

Challenge 2 Solution 

Alteryx Partner

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





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.

6 - Meteoroid



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

Alteryx Certified Partner

Nice and easy to complete!

6 - Meteoroid

Interesting Exercise

7 - Meteor

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

6 - Meteoroid


Alteryx Certified Partner
Alteryx Certified Partner

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




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.