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 updating the requirements for Community registration. As of 7/21/21 all users will be required to register a phone number with their My Alteryx accounts. If you have already registered, you will be prompted on your next login to add your phone number.
alteryx Community

# 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 #257: Palindromes

12 - Quasar

A man a plan a canal panama

Spoiler

See below for a video walkthrough.

Spoiler
16 - Nebula

It's also fun to use @jdunkerley79 's alteryx abacus variable functions. You can do so much more in the formula tool.

Spoiler

12 - Quasar

This was a fun one, and highlights a rarely used (at least by me) function of reversing strings.

Spoiler

8 - Asteroid
Spoiler
Solution Attached

12 - Quasar

My solution :

Spoiler

15 - Aurora
Spoiler
9 - Comet

racecar 🏎

Spoiler

14 - Magnetar

That was good fun. Here's my solution:

Spoiler

12 - Quasar

No macro needed:

Spoiler
6 - Meteoroid
Spoiler

I was able to parse the palindromes with a simple formula, after that filtering to get the data was a breeze!

The formula I used to detect palindromes is:
IF ((ReverseString(Right([Words], (length([Words]) - Mod(length([Words]), 2)/2)))) = (Left([Words], (length([Words]) - Mod(length([Words]), 2)/2)))) THEN 1 ELSE 0 ENDIF

This formula takes the last half of the word (excluding one character for odd length words), flips it, and compares it to the first half of the word (excluding one character for odd length words). Awesome to see Modulo is available in the formula operation, super useful for dynamic formulas like this!