Netflix Catalogue Data Model
Two Kaggle files (titles and credits) turned into a five-table relational data model in Excel. Power Query splits list-style genre and country columns into bridge tables, and DAX with CROSSFILTER makes genre, country and people filters work across the model.

The problem
The Kaggle Netflix TV Shows and Movies dataset comes as two files. titles.csv has one row per film or show (5,850), and credits.csv has one row per actor or director on a title (77,801). They share an id column. Several fields are stored as text that looks like a list, such as ['drama', 'crime'] for genres and ['US', 'GB'] for countries. One title can have many genres, countries and people, so a single flat table would double-count. The answer is a proper relational model.
Data cleaning and modelling (Power Query)
- Two custom M functions:
fnParseListturns"['drama', 'crime']"into a real list, andfnGenreNameturns codes likescifianddocumentationinto readable labels. - Bridge tables: TitleGenres (15,147 rows) and TitleCountries (6,528 rows, with ISO codes mapped to country names) are built with
Table.ExpandListColumn. - People: the 54,589 actors and directors are split into their own table. Credits keep just the keys, role and character.
- 88 duplicate credits removed, where the same person had the same role on the same title, for example an actor listed twice for two characters.
- Gaps handled explicitly:
- 2,619 missing age ratings labelled “Not rated”
- 14 shows with a runtime of 0 set to blank
- 482 titles without an IMDb score left out of averages
- 59 titles with no genre labelled “(not given)” so they stay in totals
- Relationship check: every credit links to a title, and 361 titles have no credits.

How it works
Data model: four relationships around Titles (Credits → Titles, Credits → People, TitleGenres → Titles, TitleCountries → Titles).
Many-to-many in DAX: Excel’s data model only filters one way, from Titles down to Credits. Every title measure therefore wraps its calculation in CALCULATE(..., CROSSFILTER(Bridge[id], Titles[id], BOTH)), so a Genre, Country or Person filter correctly narrows the titles. Measures include titles, movies, shows, average and vote-weighted IMDb, share rated 7+, average movie runtime, people credited, and titles directed or acted in.
Report: slicers for type, genre, decade and age rating drive six CUBEVALUE tiles, four PivotCharts and top-10 tables of directors and actors.


Key insights
- Movies dominate (3,744 vs 2,106 shows), but shows score higher on IMDb: 6.98 against 6.25.
- Best-rated genres: history (7.13), war (7.07) and documentary (7.01). Horror is lowest at 6.01.
- The catalogue is recent: releases peaked in 2019 (836 titles), and 2017-2021 accounts for more than half the catalogue.
- US-made titles lead (2,323), followed by India (622) and the UK (404). Indian actors top the most-credited list: Boman Irani and Kareena Kapoor Khan with 25 titles each.
- Only 38.6% of scored titles reach an IMDb rating of 7 or more.
Checking it
I recalculated every row count, all cleaning counts, each genre’s title count and average score, and the top directors independently in Python. All of them matched. Filtering to Documentary gives exactly 952 titles averaging 7.01, which proves the many-to-many filtering works.
📊 Download the workbook (.xlsx). It is about 6.5 MB, with the data model already loaded.