2022: Week 16 - Restaurant Orders

Created by: Jenny Martin

The Preppin' Data team are planning to go out to dinner. However, the system the restaurant has used to collect orders doesn't provide the chefs with the easiest way to understand what they should be making. To help things go swimmingly on the night, as well as for all other guests using this ordering system in the future, we'll create a workflow to only show the ordered dishes for each guest.

Inputs

  1. Orders from Guests 

  2. Recipe ID lookup table 

Requirements

  • Input the data
  • Reshape the Orders table so that we have 3 columns:
    • Guest name
    • Dish
    • Selections (containing 🗸 or null)
  • Extract the course name from the Dish field
    • Group these so that Starter and Starters are treated the same, for example
  • Fill down the course name for each Guest (hint)
    • It may help to bring in the Recipe ID from the Lookup Table 
    • Where the Dish contains the Course name, it may be helpful to replace the Recipe ID in the following way:
      • Starters = 1
      • Mains = 2 
      • Dessert = 3
  • Filter out where the Dish = Course
  • Filter out Dishes which have not been selected
  • Output the Data

Output

Updated: 22/04/22
  • 4 fields
    • Guest
    • Course
    • Recipe ID
    • Dish
  • 12 rows (13 including headers)
After you finish the challenge make sure to fill in the participation tracker, then share your solution on Twitter using #PreppinData and tagging @Datajedininja@JennyMartinDS14 & @TomProwse1

You can also post your solution on the Tableau Forum where we have a Preppin' Data community page. Post your solutions and ask questions if you need any help! 




Popular posts from this blog

2024: Week 1 - Prep Air's Flow Card

2023: Week 1 The Data Source Bank

How to...Handle Free Text