2020: Week 1
Welcome to Preppin' Data 2020! If you are returning from completing some of the challenges in 2019 then welcome back. If you are joining us for the first time then here's a quick overview of how the Preppin' Data challenges work:
- The CHALLENGE is set in a post like this, often released on a Wednesday. You'll get:
- The Business case / positioning for the challenge
- The Requirements clearly laid out including the data input
- The Output file and the structure that file should have
- A link to fill in the participation tracker so you can see how you are progressing in the viz here.
- The SOLUTION post posted the following Tuesday or later depending on what the Dr Preppers have going on in there non-Preppin' lives.
There are loads of places to get started with Tableau Prep. The videos by Tableau here are great and we've produced a load of 'How to...' articles to help guide you through some of the datary basics you need as well as some more of the complex techniques you will come across.
One final point - no you don't have to use Tableau Prep for the challenges. We love seeing submissions from any tool (Alteryx, R, Python, SQL etc) with blogs / pictures of how you have completed the challenges but the challenges will be focused on being possible in Tableau Prep.
So on with 2020's challenges...
Whilst reading through some great Tableau blogs over the Holidays, the bosses at Chin & Beard Suds Co. (our fake soap company that might have the worst data in history) stumbled across Ryan Sleeper's post on Financial Statements (tip 6) and decided they needed a nice Profit statement for their board meetings from here on. Sadly our data isn't structured like we would ideally like so your challenge this week is to automate the production of the profit statement.
- Input the data set
- Find the profit totals for X items
- Find the profit sub-totals for X.X items
- Add the relevant values to the relevant items by replacing the nulls
- Add the leading spaces:
- 5 spaces for X.X items
- 10 spaces for X.X.X items
- NOTE: Do not manually rename these there is a function that will help!
- Output the data (not csv or you'll lose the spacing)