2023: Week 2 - International Bank Account Numbers

Challenge By: Jenny Martin

For week 2 of our beginner month, Data Source Bank has a requirement to construct International Bank Account Numbers (IBANs), even for Transactions taking place in the UK. We have all the information in separate fields, we just need to put it altogether in the following order:



Inputs

  1. A list of the transactions, with information about the receiving bank account 

  2. A lookup table for the SWIFT Bank Codes 

Requirements

  • Input the data
  • In the Transactions table, there is a Sort Code field which contains dashes. We need to remove these so just have a 6 digit string (hint)
  • Use the SWIFT Bank Code lookup table to bring in additional information about the SWIFT code and Check Digits of the receiving bank account (hint)
  • Add a field for the Country Code (hint)
    • Hint: all these transactions take place in the UK so the Country Code should be GB
  • Create the IBAN as above (hint)
    • Hint: watch out for trying to combine sting fields with numeric fields - check data types
  • Remove unnecessary fields (hint)
  • Output the data

Output

  • 2 fields
    • Transaction ID
    • IBAN
  • 100 rows (101 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

How to...Handle Free Text