2021: Week 11 - Cocktail Profit Margins

This week's challenge has been put together by Vivien to challenge a lot of the fundamental prep skills you have built up so far this year.

Vivien's challenge is looking at cocktail pricing (a common trend over the years at Preppin' HQ) and whether you can determine how much profit you can make from certain cocktails because who doesn't talk about data preparation when you are in a bar?

Input

Cocktails: names, prices and their recipe with measurements
Sourcing: ingredient prices, quantity per bottle, currency of price 
Conversion rates: currencies and their conversion rates (e.g. 1.14 euros = 1 pound) 

Cocktails


Sourcing


Conversion rates

Requirements: 

  • Input the dataset
  • Split out the recipes into the different ingredients and their measurements
  • Calculate the price in pounds, for the required measurement of each ingredient
  • Join the ingredient costs to their relative cocktails
  • Find the total cost of each cocktail 
  • Include a calculated field for the profit margin i.e. the difference between each cocktail's price and it's overall cost 
  • Round all numeric fields to 2 decimal places 
  • Output the data
Output:


One table:
4 fields: 
  • Cocktail 
  • Price
  • Cost
  • Margin 
5 Rows (6 including headers)

The full output can be downloaded here.

After you finish the challenge make sure to fill in the participation tracker, then share your solution on Twitter using #PreppinData and tagging @vivienho22@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

2023: Week 1 The Data Source Bank

2023: Week 2 - International Bank Account Numbers

How to...Handle Free Text