2022: Week 31 - C&BSCo Preppin' Parameters
Created by: Carl Allchin
If you have been following our challenges throughout July, you will have mastered the fundamentals of data preparation. Now let's dial those skills up a bit further and start to use a few more advanced functions. We'll also offer you a little guidance than before.
This week will focus on your user choosing the output they need. For this challenge, our sales team in each of our store's need to be able to download the top 10 liquid products, size and scent combinations. To save yourself time and effort, try to do this with one flow and use a parameter that your user can select their own store.
Input
Let's use the same input again from week 27. If you haven't got it to hand, download it from here.
Requirements
- Input the data
- Split the Product Name field into Product Type and Size
- Only keep the Liquid products
- Total up the sales for each Product Size and Scent for each Store
- Rank each of the Product Size and Scent combinations for each Store
- Only leave the top 10 based on total sales value calculated above
- Round the Sales Values to the nearest 10 value (ie 1913 becomes 1910)
- Create a parameter to select the store
- Ensure the output only contains the chosen store
- Output the data and include the Store Name in the file name
Output
6 potential outputs, each with the same structure but only contains one store each
5 data fields:
- Store name
- Rank of Product Size & Scent by Store
- Scent Name
- Size
- Sale Value
10 rows (11 rows incl. header)
You can download the full output here.
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!