2023: Week 5 DSB Ranking

 Created by: Carl Allchin

The intermediate month begins by building on the aggregation technique covered in week 1. This week's challenge looks at two analytical calculations that can make the use of the data source much easier for end users. 

If you are a user of Tableau Desktop, you have likely had to create rank's and use Level of Detail calculations (these are just calculations at a different level of granularity to the data set or visual you are creating). These aren't easy calculations for new users to understand so if you can add them to your data set before sharing then you can make the end user's life easier. 

Here are some links to learn more about both techniques:

Input

This week's input is the same as the first week's, one .csv file, but you can download it here

Requirements

  • Input data
  • Create the bank code by splitting out off the letters from the Transaction code, call this field 'Bank'
  • Change transaction date to the just be the month of the transaction
  • Total up the transaction values so you have one row for each bank and month combination
  • Rank each bank for their value of transactions each month against the other banks. 1st is the highest value of transactions, 3rd the lowest. 
  • Without losing all of the other data fields, find:
    • The average rank a bank has across all of the months, call this field 'Avg Rank per Bank'
    • The average transaction value per rank, call this field 'Avg Transaction Value per Rank'
  • Output the data

Output


One file

6 data fields:
  • Transaction Date
  • Bank
  • Value
  • Bank Rank per Month
  • Avg Transaction Value per Rank
  • Avg Rank per Bank
36 rows (37 rows incl. headers)

You can download all the outputs 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

2024: Week 1 - Prep Air's Flow Card

2023: Week 1 The Data Source Bank

How to...Handle Free Text