After a day full of DBT, dashboard week arrived. However, surprisingly, it followed on nicely from yesterday as today's challenge involved a mixture of SQL and Power BI. Two elements I came into training with zero experience in, let's see how much I've learnt over the past 4 months.
The Brief
As April turns to May, we aren't just looking at plastic bricks—we’re looking at life itself. With Sir David Attenborough’s 100th birthday approaching this May, your mission is to document the "natural history" of the LEGO universe. Will you cultivate a digital garden with the Botanical Collection, or track the evolution of LEGO Animals across the Great Rebrickable Plains?
- Download the Rebrickable Data and upload them individually to your own schema on Snowflake
- Use SQL to clean and join your data. Choose to either focus on Botanical or Animal related items.
- Connect your Snowflake data to a visualisation tool and build an interactive dashboard that even Sir David would find "simply...magnificent."
Snowflake/SQL
After collecting all 12 of my Rebrickable tables I headed into Snowflake where the first task was to work out how to even upload CSV files into a database. However, thanks to some of our wonderful data engineers eventually I was on my way.
After looking through many of the tables, I decided that I wanted to go down the "Botanical/Floral" path as this 'theme' seemed to be simpler to define than animal related sets & parts.
When looking at the provided schema from Rebrickable I realised a few things. Firstly, I didn't need any data related to minfigs. Secondly, the tables seemed to fall into natural groups:
- Sets & Themes
- Parts & Inventories
Hence, this was my first direction when looking to join my data in snowflake. Here is the SQL script for how I joined together my tables.

Once I had these tables joined together I began to move into Power BI.
Power BI
After a lot of trial and error eventually I was able to connect Snowflake data into Power BI. Note to anyone connecting to snowflake using a key pair THE TOP AND BOTTOM LINE ARE NEEDED. However, if you do get rid of these like I did then you can go into your Power BI settings and update the key pair.
After creating my date table & measures table it was time to start playing and building. After looking through all the data within power BI I started to plan out what I wanted to show within my dashboard, with my primary focuses around:
- Using the set URL links to see how plant parts are used across different sets
- Analysing how the most popular plant parts colours have evolved and changed over time, as well as the number of colours used.
- Show how the number of plant parts produced has also changed and grew over time
- Using the previous section focusing on colour as a filter for this chart.
After planning, it was around 11:30 and I felt it was time to actually make a chart. The building process continued until around 13:30 when I decided it was time to format, as this is often my crux when working within Power BI. After formatting, the final dashboard turned out like this:

