2024: Week 23 - SuperBytes Salaries

Challenge By: Andrew Tobin

We're continuing with DS43's challenges so over to Andrew to explain his first challenge. 

_____________________________________

Recently, SuperBytes realised they have underpaid one of their managers, Max Date, by around £5,000 over the course of his career. They want to know if they’ve done the same for any other managers. Assume all managers have received paychecks (correct or incorrect) up to the present date (5th June 2024)

Input

This week’s input contains three sheets: 

  • salaries, containing annual contracted salaries 

  • tenure, containing manager start/end dates 

  • amount paid, containing the actual total amount each manager has received over their career 

Requirements

  • Input the dataInput the data
  • Clean the manager names in the Salaries and Tenures sheets so they match
  • Bring together the two datasets
  • Calculate the tenure (number of days) of each manager’s employment
    • Hint: For current employees, see what happens when you change the datatype of “End Date”
    • For the output below, the End Date for current employees is set to 5th June 2024
  • Using salary and tenure, calculate the Expected Total Salary of each manager
    • Rounded to the nearest whole number
  • Join the data from the Amount Paid sheet
  • Filter the output table to only include managers whose pay received does not match their expected pay
  • Remove unnecessary fields
  • Output the data

Output

  • 4 data fields
    • Name
    • Salary
    • Expected Total Salary
    • Amount Paid
  • 3 rows (4 including header)

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

2023: Week 1 The Data Source Bank

2024: Week 1 - Prep Air's Flow Card

2023: Week 2 - International Bank Account Numbers