Cast your vote for the official 2025 Inspire Pin! Designs were submitted by fellow Community members and reflect the creativity and passion of Alteryx users across the globe. Vote now!
Free Trial

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 #20: List Parsing

michalsicak
Météore

phew, almost gave up a couple of times and definitely solved this in a very complicated and error-prone manner.

 

Révélation
challenge20.png
jamielaird
Magnétar

Solution attached. Merry Christmas everyone :-)

 

Révélation
Screen Shot 2017-12-25 at 12.30.42.png
Suzanne
Météore

It's a bit messy but good learning so left some of the trials and tribulations in the final solution -:)

Natasha
Boule de feu

It took me quite a lot of time to do this one. Was trying to match through the company name position between blanks/nulls, but that was all very inconsistent. Finally gave up and did it with regex as everyone else.

Révélation
Screen Shot 2017-12-26 at 22.15.11.png
MaxGiegerich
Astéroïde

Ooft. Death by parsing.

JoshKushner
Quasar

By far took me the longest of any, but after understanding there was the address/phone combo it worked out.

JosephSerpis
17 - Castor
17 - Castor

Challenge Completed

mceleavey
17 - Castor
17 - Castor

A beautiful example of why Regex is the best thing since Otto Frederick Rohwedder embraced his powerful laziness and made an paralleled contribution to society.

I suspect my solution differs slightly to most in form if not logic:

 

Révélation
I first replaced the solitary "." fields, then individually isolated the Fax, Phone, Website and Notes fields using Regex:
Regex.PNG

Fax.PNG
I then transposed the data to create a single value column with these fields and used the Find and Replace tool to remove them from Field_1. This left Field_1 containing only Company Name and Address:
Transpose.PNG
I then used Regex to create the Address field and a simple replace formula to isolate the company name.
It was then a simple method of creating a record id and summarizing using the record id and company name as the group and the longest values of each column as the values.
Workflow.PNG


Regex makes me happy.

 



Bulien

asabau
Astéroïde

Quite difficult. Peaked into other solutions posted

blairmbailey
Astéroïde

Solution attached - thanks!