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

bnelly1987
8 - Asteroid

Thanks!

Spoiler
Solution-Challenge 008.PNG
smatthies
7 - Meteor

Solution attached. Date was tricky to get just the right count of records.

viveknshah
8 - Asteroid
Spoiler
challenge8_viveknshah.JPG

PraveenSoori
5 - Atom

Solved using both Join & Find/Replace

salankayana
5 - Atom
  1. Find & Replace the Type based on the Desc
  2. Remove Duplicates based on Ticket ID and Type
  3. Cast Date to DateTime and filter on required Dates
  4. Summarise at Ticket ID level and Concatenate the Type into one column
  5. Flag as "Deal" if the concatenated column has a combination of Burger, Side, Drink or Pizza, Side, Drink; else tag as "No Deal"
  6. Count "Deals" and find the percentage of total.

 

Regards,

Salankayana

Hitch
8 - Asteroid

Here's my attempt, certainly not the simplest solution!

lavanyadurai
7 - Meteor
Spoiler
Challenge8.PNG

 

Vidya26
8 - Asteroid

My Solution

mcultrera
8 - Asteroid

My method used mostly filters/joins in lieu of the flag/summarizing method shown in the solution. 

 

I see the wording on the web was updated to July from June, but I was using the instructions in the start file, so it took me a while to figure out that I was using a different date.  I guess I was using the old file?

 

Cheers!

kelsey_kincaid
12 - Quasar

I got hung up on the date ranges, but got there eventually. Thanks for another good challenge!

Spoiler
Challenge8-KA.PNG