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.
We are currently experiencing an issue with Email verification at this time and working towards a solution. Should you encounter this issue, please click on the "Send Verification Button" a second time and the request should go through. If the issue still persists for you, please email support@alteryx.com for assistance.

Weekly Challenge

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

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

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

Submit Feedback

Challenge #262: With-invoice

Elias_Nordlinder
11 - Bolide

Some Regex parsing and more 🙂

 

Spoiler
Elias_Nordlinder_0-1626683890043.png

 

xAJBx
7 - Meteor
Spoiler
xAJBx_0-1626703850503.png

 

KaneG
Alteryx
Alteryx

This could be done with a Batch Macro in case of more tables, but who knows what format they would be in. This solution should deal with the case where headers are 2 or 3 rows and any amount of data...

 

Spoiler
Firstly tag the data, and then count the dashes for each field in order to figure out how many characters are in each field. After that, it's just substrings and formatting.

KaneG_0-1626772656447.png

 

AndrewS
11 - Bolide

#262

Spoiler
262.PNG

VizChic
10 - Fireball

was good to understand parsing more. FG AA soln

 

wigr
5 - Atom
Spoiler
wigr_0-1629276039668.png

 

There's still a bunch of hard-code, but could be nice to try the solution on a different data set to see how it generalises.

suyash0807
7 - Meteor

MY solution - seems like a bit lengthy as compared to others.

Jotigautam
8 - Asteroid
Spoiler
Jotigautam_0-1631543272049.png

 

Bonediggler
8 - Asteroid

I'm new to RegEx so I'm sure my expressions are something of a train wreck, but in any case using this method gets the job done in only 9 tools (undynamically!)

Spoiler
Bonediggler_0-1633698194628.png

 

 

Frachiu
7 - Meteor

Hello:

I am trying to solve a part of this exercise but I want to ask how to avoid the error "this cell has leading spaces" in the Apply Date (this error appears when I parse using the Text To Columns tool).

 

Thank you