alteryx Community

# Cloud Quests

Elevate your workflow skills by solving real-world challenges using the Alteryx Analytics Cloud Platform.

## Cloud Quest #8: Settle the Score

Alteryx

### Hi Maveryx,

We posted the solution JSON file to Cloud Quest #7. Check it out and let us know what you think! Send suggestions to academy@alteryx.com or leave a comment below!

### Let’s dive into this week's quest!

1. Upload the provided Cloud Quest 8 - Start File.json file into your Analytics Cloud library.
2. The input and output datasets are included in the start file.

For more detailed instructions on how to import and export Designer Cloud workflow files, check out the pinned article Cloud Quest Submission Process Update.

### Scenario:

A group of friends are playing their favorite game. Not understanding the importance of inputting data in an easy-to-work-with format, they devised an incredibly inefficient way to keep score of their game!

In the game, there are five rounds of play and five players (a, b, c, d, and e—the first letter of their names). Each time the player’s initial appears in lowercase, the player is awarded 1 point. Each time their initial appears in uppercase, 1 point is subtracted from their overall score. Now it is your job to figure out each player’s score for each round and their respective totals after all five rounds of play. Who won?

Hints:

1. Tokenize the input data into rows.
2. There are many ways to calculate scores for each letter, but an If/Then statement can accomplish this in one expression.
3. When pivoting, you can perform multiple calculations at once including Sum and Total Column.
Spoiler

A combination of the Cross Tab, RegEx, Formula, and Dynamic Replace tools should solve your problem, but not necessarily in this sequence.

If you find yourself struggling with any of the tasks, feel free to explore these interactive lessons in the Maveryx Academy for guidance:

Once you have completed your quest, go back to your Analytics Cloud library.

### Here’s to a successful quest!

21 REPLIES 21
Alteryx

Spoiler
The first two ways I thought to solve this are missing in Designer Cloud, but I found way.

EDIT: After I found that the REGEX_Replace function supports icase, I reworked my solution to 5 tools, with the last tool just sorting the data into the correct order. My first thought was to use CharToInt(), but that is also not available in Cloud.

Alteryx

The REGEX_Match function in the Formula tool doesn't appear to support the "icase" parameter which would have required less tools than I used.

Spoiler

Alteryx

I needed a little help to get around the auto-naming in the Cross-Tab tool (_1, _2, etc) but finally got it and created an App in App Builder too!

Spoiler
Tonya Smith
Sr. Technical Product Manager, cloud App Builder
Alteryx

The dynamic rename tool makes renaming those column headers easy!

17 - Castor

Not understanding why Regex_Match isn't working, but here's a solution:

Spoiler
14 - Magnetar

My solution, had to use Regex Tools for splitting my data instead of regex in formulas but great exercise!

16 - Nebula

Here is my solution !

Spoiler
21 - Polaris

I use the Contains function with Case sensitive feature.

Spoiler
11 - Bolide

Here's my take

Spoiler
we should only need 3 tools: regex tokenise to rows, formula with regex_match() or something else which actually supports an icase argument, and a crosstab tool... the other two tools are only required to exactly match the output solution