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 #445: Help Your Book Club Choose Its Next Book!

AYXAcademy
Alteryx
Alteryx

Banner_WC_October Takeover.png

Hi Community Members,

 

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

 

As part of our Weekly Challenge User Group October Takeover event, we selected an exciting challenge submitted by Carolyn Canterman (@Carolyn) from the Seattle User GroupThank you, Carolyn, for raising the bar with this fantastic challenge!

 

Your book club is trying to select its next book to read. Each member has submitted a book suggestion which you compiled into an Excel file. Unfortunately, no one can agree on which book to pick next. Luckily, you and Alteryx can save the day!

 

Your task is to use the provided input file and create an analytics app to help your book club use specific criteria to select their next read. In the app, they should be able to:

  • Specify the maximum number of pages.
  • Have the option to filter by fiction, nonfiction, or both.

If the list of books that meets the criteria has more than one book, then the app should pick a book at random from that list for the book club to read.

 

Happy solving!

 

The Academy Team

BS_THE_ANALYST
14 - Magnetar
14 - Magnetar

Best sign up to a book club! 😎

 

 

Spoiler
Screenshot 2024-10-07 145540.png

All the best,
BS

LinkedIN

Bulien
mmontgomery
11 - Bolide
11 - Bolide

c445

Spoiler
Pivoted the genres column to rows to make it easier to select values. Updated solution to have a random sample pick one value at endc445.png
BS_THE_ANALYST
14 - Magnetar
14 - Magnetar

@mmontgomery interesting, I see your IN operator captures all case variations (i.e. Nonfiction; nonfiction), I forgot about that in Alteryx, although it's a blessing and a curse. 

I suppose the way to ensure an exact match would be with a regex_match and toggling the case insensitivity parameter.

 

"a" = "A" 🤔

 

 

All the best,
BS

LinkedIN

Bulien
mmontgomery
11 - Bolide
11 - Bolide

@BS_THE_ANALYST If case matters, then yes, regex match or contains (using the third optional parameter for case insensitivity are options). Yeah, IN will grab case variations, but you can always standardize the case syntax before doing any operations so Nonfiction becomes NONFICTION or nonfiction, etc.

RolandSchubert
16 - Nebula
16 - Nebula
Spoiler
445.jpg
AkimasaKajitani
17 - Castor
17 - Castor

My solution!

 

Spoiler
image.png

image.png
PhilipMannering
16 - Nebula
16 - Nebula

Solution attached.

 

Spoiler
image.png
Powerhouse_21
10 - Fireball
Spoiler
445a.png

445b.png

MitchyMitch
8 - Asteroid

Had fun with this one! ^.^

Spoiler
Challenge 445.pngChallenge 445 - App.png