Cloud Quests

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

Cloud Quest #2: Consumer Purchase Aggregation

AYXAcademy
Alteryx
Alteryx

Academy_Quests_Banner.png

Hi Maveryx,

 

Thanks for submitting your solutions for our first official Cloud Quest! In the video solution we posted, Alteryx Chief Evangelist, Joshua Burkhow (@joshuaburkhow) will guide you through the workflow (scroll down the page to locate the video).

Thank you, Josh, for the exceptional guidance!

 

For this week’s quest, you are taking on the role of a restaurant manager. You want to review customer purchase behavior to decide whether your restaurant should offer a meal deal that would add a side and drink to a pizza or burger purchase. To make this decision, you need to study recent transactions to determine the potential impact it could have.

 

The Point of Sale dataset includes the ticket-level information, and the two lookup tables categorize items into higher-level food types.

 

Your task is to determine the percentage of orders since July 1, 2013, that include the Food category (Pizza or Burger) paired with a Side AND Drink. To accomplish this, you need to determine the total number of orders placed within the specified timeframe and identify those that meet the criteria for the potential meal deal you are considering for your menu.

 

Hint 1: Remember to combine the dataset with the lookup tables and filter by date.

Hint 2: Remember to account for dates after June 30, 2013 to include July 1, 2013 in the output.

 

Your final result should look like the following image:

 

Output.png

 

 

 

 

 

 

 

 

Spoiler
Hint: A combination of Join, Filter, Summarize, Cross Tab, Append Columns, and Summarize tools should solve your problem, not necessarily in this sequence.

 

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

Once you have completed this quest, capture a screenshot of your finalized workflow in Designer Cloud and attach the image of your solution to a comment on this post.

 

Here’s to a successful quest!

 

SOLUTION

 

We want to hear from you!

As we introduce our Cloud Quests for the first time, we value your input. Share your thoughts on the clarity of instructions, the provided dataset, the expected output, and any suggestions to enhance your experience.

 

Thank you!

 

AYX-Maveryx_Micro Identity-Maveryx Academy_wordmark.png

45 REPLIES 45
Treyson
13 - Pulsar
13 - Pulsar
 

I tried using as many tools as I could because there is a lot of function changes that have been made to some tools and I want to know what they are.

 

Specifically on the cross tab tool, the ability to select which new columns you are creating is nice, however I think I would like an "add all" option or it defaults to making a column for every value and we can chip away at what we want returned.

 

Also I learned that the Dynamic Rename tool doesn't have the "Take Column Name from First Row" function and that has been moved to the dataset creation section. I think there might be reasons why I want Dynamic Rename to still have that option.

 

 
 
 
Spoiler
Screenshot 2024-02-21 100628.png



Treyson Marks
Managing Partner
DCG Analytics
ScottMcV
Alteryx
Alteryx

Tried to use a simple set of tools to keep it clean.  An explicit "add all" would be nice on the Crosstab (but not automatic, as that might add all the orderids, as an example, given the identity usually comes first in the data).

 

Spoiler
CloudQuest2.png
Treyson
13 - Pulsar
13 - Pulsar

@ScottMcV Super great point on selecting the wrong field as the header. I hadn't thought of that. But a select all would be super useful.

Treyson Marks
Managing Partner
DCG Analytics
geoff_zath
Alteryx
Alteryx

Here is my solution. I tried this without the Cross Tab tool. One issue I found was not being able to use the Join tool to join by record position. The Append tool works in this case, but if I have more than one set of rows that I want to join manually, the Append tool is not the ideal way to do it.

 

Comment on the solution, I think the posted solution is for dates after July 1st. The filter tool doesn't have a >= function so we need to set dates for after June 30th instead.

 

@Treyson Note on the Dynamic Rename tool, I'm guessing there's a limitation here with how sampling works in AAC (i.e. the first row being sampled might not actually be the first row). That's why that function hasn't been added yet.

 

Spoiler
 quest_2_workflow.png

 

geoff_zath
Alteryx
Alteryx

My above comment about sampling got me thinking, since the input PoS dataset is larger than 10 MB, what you are seeing in the workflow is only a sample (10 MB max). (Correct me if wrong) You'll need to add an Output Data tool and then select Run Job to generate a CSV with the results from the entire dataset. See the difference in the Sample Results window (sampled data) versus the CSV output when the job is run on the entire dataset.

Sampled Data:

Spoiler
quest_2_workflow_v2.png

Job Output:

Spoiler
quest_2_csv.png
bradshaw
Alteryx
Alteryx

To get these results I filtered out 1 July 2013, but I argue that we should include it too. 

This was a good one. 

 

Spoiler
 
 

 

AYXAcademy
Alteryx
Alteryx

Hi @geoff_zath, thanks for your comments!

 

Using the Append Columns tool instead of the Join tool has proved to be very effective in this scenario. Perhaps in the future, we'll see a configuration for joining by position.  😉 Additionally, the Union tool could also be used, however with a bit more postprocessing required.

 

Your point about the absence of the >= function for filtering dates is not accurate. The availability of operators such as >= depends on the data type being manipulated. For numerical data types, the >= operator will indeed be available. Does it make sense?

 

Thanks for bringing this to my attention!

 

Once again, thank you for resolving this week's quest!

 

SylviaP

RobertW
Alteryx
Alteryx

Here's my solution without crosstab

 

Spoiler
Screen Shot 2024-02-22 at 10.59.38 AM.png
SGolnik
11 - Bolide
11 - Bolide

It is fun to see that even in the cloud world, we all still solve the problems using different tools. 

Spoiler
 

Quest_2 Screenshot 2024-02-22 151314.png

Spoiler
Spoiler
Spoiler
Quest_2_answer.png