2021: Week 39 - Painting Bikes

Challenge by Tom Prowse. 

This week we make a return to our Bike store but this time we are looking at the painting process within the factory. The factory has a process where different bikes go through a process to be painted and the engineers are provided with some indicator values as the process progresses. It is vital that the engineers are able to track these indicators so they can keep an eye on whether the process is hitting it's target or there are any potential problems. 

The data is currently provided in a bit of an unfriendly way with all of the parameters being in a single column. Data is also only provided when a value changes, therefore we should assume that the process value is the same as the previous value until it is updated later in the process. In order to get some value from the data set we need to change the structure and do some cleaning before we can visualise this with Tableau Desktop. 

From the data set the engineers would like to have some information on the following:

  • Type of bike being painted
  • Status of the batch (1 = Pass or 2 = Fail)
  • Actual & Target values for the following parameters: 
    • Current
    • Voltage
    • Gas Flow
    • Temperature
    • Pressure
  • Stage of the process. These include: 
    • Gloss Finish
    • Painting 1 & 2
    • Shutter Opening & Closing
    • Warming Up
Input
1 input that contains all the details about the process: 

Input Table


Requirements
  • Input the Data
  • Create a Datetime field
  • Parse the Bike Type and Batch Status for each batch
  • Parse the Actual & Target values for each parameter. 
  • Identify what time each of the different process stage's took place. Each process stage is provided with a start time, and there is no overlap between stages. Assume that the final process stage ends when the last update occurs.
  • Output the data in a single table.
Output
1 table - 8 Fields, 153 Rows

Output Table

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! 

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