2020: Week 33
Challenge by: Jenny Martin
Since we had so many interesting approaches to Carl's fill down challenge last week, I thought we'd continue the theme of multi-row data prep problems!
This week we're looking at Chin & Beard Suds Co's slightly odd inventory ordering process. Every Wednesday, they restock each scent with 700 new bars. This is working on the assumption that the average sales for each scent are 100 bars a day. Any unsold bars on the Tuesday evening are deemed "not fresh enough" and thrown away.
We've been tasked with finding out how many bars are being wasted due to this process and how much that's costing the company!
Inputs
We have 3 inputs this week:
Daily Sales Input |
Orders Input |
Scent Input |
Requirements
- Input the data*
- *Edit 20/08 - Final 3 days in July Removed from Daily Sales
- Calculate the Units Sold (=Daily Sales/Price)
- For each week (Wednesday-Tuesday), calculate the Weekly Units Sold and Weekly Sales.
- Hint: It may be useful to use the Orders input to make these weekly groupings
- Calculate the Waste (=Units Ordered - Units Sold)
- Calculate the Waste Cost (=Cost*Waste)
- Calculate the Profit (Weekly Sales - Waste Cost)
- Rank each Scent from most profitable overall to least profitable overall
- Output the data
Output
- 3 fields
- Profitability rank
- Scent
- Total Profit
- 5 rows (6 including headers)
No output file for you to compare with this week, as hopefully it's clear from the image above!
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, @JonathanAllenby & @TomProwse1
You can also post your solution on the brand new Tableau Forum where we have a Preppin Data community page. Post your solutions and ask questions if you need any help!