Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

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

Phitenff
6 - Meteoroid

Done. Fun!

Mikkel_D_Karlsen
8 - Asteroid

My Solution

aking
7 - Meteor

Pretty easy one that had lots of ways to do it. Although I would say that obviously they should NOT offer a meal deal since without it 70% already purchase it and you would be discounting regular behavior 

 

 

Siddharth
5 - Atom

Did not use the flags, but still managed to solve the challenge using expressions for string within Filter Tool

 

danilang
19 - Altair
19 - Altair

Hi

 

I also used a solution with no flag table and used a filter to find "([Burger]>0 or [Pizza]>0) and [side]>0 and [Drink]>0" after the cross tab.  I also filtered the Point of sales records before joining to the lookup table to reduce the number of downstream records

tcroberts
12 - Quasar

Here's my solution

Spoiler

 

WC8workflow.PNG

The CrossTab tool was key here, it allowed me to group by the ticket ID and then identify combos. Its output is a bit messy and I'm sure there's a better way to spread the Type column, but by checking for empty strings I was able to determine if a ticket had purchased an item or not.

 

I assumed that salad and soups aren't sides, but the workflow should still work if you add additional arguments to the MultiField Expression tool.

 

Enjoyed the exercise, thanks!

JustinBabbitt
Alteryx
Alteryx

Thank you!

Justin Babbitt
svenk
8 - Asteroid

My  Solution!

Kenda
16 - Nebula
16 - Nebula
Spoiler
I read 'since June 2013' as including June 2013 at first and couldn't figure out why the results weren't the same. Once I realized the data should be July and after and changed the filter, everything matched.
 8.PNG
AGoyal
8 - Asteroid

Solution - very long and convoluted.

 

Spoiler
alteryx-c8.PNG