2023: Week 38 - Sustainable Development Goals

Challenge by: Lorna Brown

Workout Wednesday Coach Lorna Brown brings us another challenge! The challenge comes from a Data School Consultant's question and Lorna needed to reshape the data a little first so turned to Tableau Prep of course. If you want to complete the Tableau Desktop part of the challenge head over to the WOW website.

Input

The data is concerning Sustainable Development Goals (SDGs) and if we take a look at the original then we have some idea as to why it needs cleaning: 


Requirements

  • Input the Overview sheet
  • You'll notice if you open this in Excel that the SDG headings are merged across 2 columns, the colour indicator and the arrow. Find a way to rename the fields containing the arrows so it's still clear which goals they're associated with
  • Reshape the data so that for each Country there is a row per SDG, containing information about the colour indicator and the arrow on the same row
  • Rename the colour indicator field to SDG Value
  • Rename the arrive field to be SDG Trend
  • Update the SDG Values field:
    • Green - Goal Achieved
    • Yellow - Challenges Remaining
    • Orange - Significant Challenges
    • Red - Major Challenges
    • Grey - Insufficient
  • Update the SDG Trend field:
    • ↑ - On Track
    • ➚ - Moderately Increasing
    • → - Stagnating
    • ↓ - Decreasing
  • Output the data

Output

  • 7 fields
    • Country
    • 2023 SDG Index Score
    • 2023 SDG Index Rank
    • Regions used for the SDR
    • SDG Name
    • SDG Value
    • SDG Trend
  • 3,502 rows (3,503 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 @LornaBrown@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