Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more 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 #348: Reorder a List of Names

AYXAcademy
Alteryx
Alteryx

A solution to last week’s challenge can be found here.image_348_2.png

 

To solve this week’s challenge, use Designer Cloud or Designer Desktop.

 

Do you have to reformat lists because the last name and first name are listed in a different order?

 

In this weekly challenge, you need to rearrange an improperly formatted list of subscribers. Some of the subscribers’ names are listed with the last name(s) followed by a comma, and then the first name(s).


Your goal is to reorder the list with the first name(s) followed by the last name(s), and put the list in alphabetical order. For example, the subscriber “BORROEL GOMEZ, JUANA” should be listed as “JUANA BORROEL GOMEZ” with no punctuation.

 

Note that some subscribers can have more than one first name or last name.

 

Haven’t heard about Designer Cloud yet? Watch a demo. 

RWvanLeeuwen
11 - Bolide

My solution can be improved by handling edge cases due to suffixes as 'JR' but here's my take

Spoiler
348.png
dougbaron
8 - Asteroid
Spoiler
dougbaron_0-1670247460482.png

 

benjimoser
9 - Comet

I did it with RegEx Replace

 

Spoiler
benjimoser_0-1670247738037.png

 

dougbaron
8 - Asteroid

@benjimoser very simplified. nice job!

AkimasaKajitani
17 - Castor
17 - Castor

My solution.

 

Spoiler
AkimasaKajitani_0-1670248085802.png

 

DataNath
17 - Castor
17 - Castor

My solution to #348.

 

Spoiler
DataNath_0-1670249371581.png


Kachow!

DanFlint
8 - Asteroid

My solution using regex replace:

Spoiler
DanFlint_0-1670250456966.png

 

Kenda
16 - Nebula
16 - Nebula
Spoiler
Straight from AoC to the weekly challenge this Monday morning! 

Kenda_0-1670251060031.png

 

balajilolla1
8 - Asteroid
Spoiler
Solution Attached

balajilolla1_0-1670251731692.png