2023: Week 36 - C&BSCo 5-a-side

Challenge by: Jenny Martin

This challenge is inspired by a recent dataset from a Data School client project. It has been reimagined, of course, with the fake company Chin & Beard Suds Co. 

As you know, C&BSCo has branches all over London. They like to get together every other Sunday for a 5-a-side football tournament. Every time a player plays in a match, their Total Matches number is overwritten and increased by 1. This has caused some issues for the football data nerds who want to do some analysis to see if players who have played more games will score more goals. So we'll need to help them retroactively work out how many matches a player would have played in before the start of each tournament. 

Input

Just the one input this week, detailing the tournaments each player has played in.

Requirements

  • Input the data
  • To work out the Experience each player has going into the tournament, we need to know how many matches they played after that match and minus this number from the Total Matches. This will require a running total
  • Output the data

Output


  • 6 fields
    • Team
    • Player ID
    • Total Matches
    • Tournament Date
    • Experience at the beginning of Tournament
    • Matches Played in Tournament
  • 436 rows (437 including headers)
You can download the output from 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

2023: Week 1 The Data Source Bank

2023: Week 2 - International Bank Account Numbers

How to...Handle Free Text