This week at The Data School was all about diving deep into Power BI. From foundational concepts in data modelling to creating powerful visualizations and learning its query language, DAX, we covered a lot of ground. I’m excited to share some key insights and takeaways that I learned throughout this week. Let’s explore the essentials of data modelling and how they can help transform raw data into meaningful insights!
Data Modelling in Power BI
Data modelling is like setting the stage for your data to shine. It’s the process of analysing and defining all the different data types within your datasets and establishing relationships and constraints to ensure that the data is accurate and useful. In simpler terms, data modelling decides what data should be captured (which entities, attributes, and data types) and how it should be organized (defining relationships between data elements). By creating a solid data model, you enable your database to effectively control and manage the data, making it easier to analyse and visualize in Power BI.
Understanding Primary Key & Foreign Key
When it comes to data modelling, understanding primary and foreign keys is crucial. These concepts help define the relationships between different datasets.
- Primary Key: Think of a primary key as a unique identifier for each record in a database table. It ensures that every entry is distinct and can be referenced individually. For example, in a database of countries, a “Country ID” might serve as the primary key, uniquely identifying each country. This helps maintain data integrity by preventing duplicate records and ensuring each record can be uniquely identified.
- Foreign Key: A foreign key, on the other hand, is used to establish a link between two tables. It’s a field in one table that uniquely identifies a row of another table. For instance, in a “State” table, a “Country ID” could serve as a foreign key, linking back to the “Country ID” primary key in the “Country” table. This relationship helps enforce referential integrity, ensuring that all entries in the foreign key column correspond to valid entries in the primary key table.

Schemas
A schema acts like a blueprint for your database, defining its structure. It organizes data into tables, specifies the columns within each table, identifies the primary keys, and shows how these tables are connected via foreign keys. A popular schema used in databases is the star schema, which is visually shaped like a star. The star schema consists of a central fact table that contains the core transactional data and multiple dimension tables that provide context (such as product details or customer information). This setup allows for efficient querying and analysis, making it a preferable options for many data professionals.
Fact Tables vs. Dimension Tables
Understanding the difference between fact tables and dimension tables is key to building a solid data model.
- Dimension Tables: These are like reference tables that store descriptive information, providing context to the data in your database. They help in organizing, filtering, and grouping data during analysis. For example, a dimension table might include product attributes (such as product name, type, or category) or customer details (like customer name, location, or membership type). These tables typically have fewer rows but are rich in descriptive columns.
- Fact Tables: These tables, also known as transactional tables, record quantitative data about specific business events or transactions. For example, a fact table might capture sales transactions, including quantities sold, sales prices, and dates. Fact tables tend to have a large number of rows filled with numeric data, allowing for deep analysis to generate insights like total sales, average purchase value, or frequency of transactions.
Reflecting on this week, I’ve come to appreciate the power and flexibility that Power BI offers when it comes to data modelling and visualization. It’s been a week of intense learning, but also a lot of fun seeing how data can be structured and visualised to uncover actionable insights. I’m excited to continue this journey and delve even deeper into the world of data analytics. If you’re new to Power BI or just starting out, I hope this overview has been helpful. Let’s keep learning and growing together!

