2024: Week 34 - The Prep School Birthday Cakes part 3

Challenge by: Jenny Martin

What's this? Our first 3 part challenge! Whilst the Prep School were thrilled with the revised Birthday Cake workflow we produced, they realised there had been an error in missing out one of the Bank Holidays that occur during term time. 

This holiday is the Early May Bank Holiday, taking place on 05/05/2025. This occurs during the Summer, term 5. From last week's solution, anyone who has a birthday on the 5th May is scheduled to have a cake on a public holiday, so we must adapt our workflow to fix this!

Inputs

You can adjust your workflow from last week to meet this new requirement, or download our solution from last week and adapt that. 

The original dataset of student's dates of birth remains unchanged:


The dataset detailing terms and holiday dates, updated to include the 5th May bank holiday. 



Requirements

  • Update the input to use the 2024 Week 34 input
  • Ensure that any birthdays on 5th May are rolled back to Friday 2nd May
    • Watch out for duplicate rows!
  • Output the data

Output


3 fields:
  • Cake Needed On Date
  • Cake Weekday
  • Count of Cakes
185 rows (186 rows incl. header)
  • 2nd May should have 16 cakes
  • 23rd May should have 18 cakes

You can view the output here.

After you finish the challenge make sure to fill in the participation tracker, then share your solution on Twitter or LinkedIn 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

How to...Handle Free Text