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 #8: Aggregate Consumer Purchases

Pablo0205
5 - Atom

Nice job! jeje

PhilipMannering
16 - Nebula
16 - Nebula

Solution attached.

One of many..

dcraft
7 - Meteor

Solution Attached

smerton
6 - Meteoroid

Used cross tab to get to the solution.

vball5
5 - Atom

Here is my solution to Challenge #8. 

Beastmode314
6 - Meteoroid

Check out my Solution to Challenge 8!

jamielaird
14 - Magnetar

This was a tasty challenge! Here's how I polished it off:

 

Spoiler
1) I started by joining the two input tables and converting the date format.
Screen Shot 2017-08-20 at 23.44.17.png

2) Then I filtered the date range to 1 July 2013 onwards and split the output into two streams. The first (top) stream counts the total number of tickets, and the second (bottom) stream cross tabulates the orders to one ticket per row with columns for items, filters using the custom formula (Burger OR Pizza) AND Drink AND Side, and then counts the number of potential meal deal tickets.
Screen Shot 2017-08-20 at 23.44.26.png

3) Finally I appended the two counts into a single record, calculated the percentage, and tidied the field orders to match the output requirements.

Screen Shot 2017-08-20 at 23.44.39.png 

 

luciebrett
8 - Asteroid

Hello,

 

This is my attempt; I seem to have used fewer tools than the solution (only one join and no secondary lookup table - even though good idea for flags), so hope that I didn't lose anything in my shorter workflow!

dheerajpoojari
7 - Meteor

Attaching my solution.

JORGE4900
8 - Asteroid

Hello all,

 

My approach to this challenge was to try to analyze if any of the ticket purchases could be treated as a "deal already", if they included the purchase of a burger or pizza and a side and drink on the transactions after July 1 2013. This left many transactions that could potentially have been a deal, where the customer bought a pizza or burger but did not buy a drink or side. There were 2,810 potential deal transactions where the customer bought pizza or burgers but did not buy drink and side; thus, this number needs to be subtracted from the total potential deals because they could be a potential pizza or burger deals.

 

In summary, the number of transactions where customers bought pizza or burgers but could have bought drinks and sides is 30,368; that opportunity represents a 57% of the deals or combos already sold.