A data platform migration isn’t judged by how many services you moved. It comes down to one question: are the numbers still the same?
To work through this hands-on, I built a complete pipeline on Google Cloud and then migrated it to Microsoft Fabric: ingestion, transformations, orchestration, logs and dashboards. All of it runs on real open data: waste management in Nantes Métropole, the metropolitan area of Nantes, France.
👉 Source code: github.com/javiladino/nantes-dechets-gcp-to-fabric

Architecture GCP → Microsoft Fabric
The data
Three datasets published on the Nantes Métropole open data portal (Opendatasoft API):
- 2,762 drop-off waste containers (colonnes d’apport volontaire: glass, paper, packaging…) with their coordinates;
- 15 recycling centres (déchèteries and écopoints);
- 203 rows of annual tonnages per centre and per waste stream, from 2012 to 2024.
The business questions: what is the recovery rate of the waste collected? How far is each container from the nearest recycling centre? How many are more than 3 km away?
The starting point: a GCP pipeline
| Step | Tool |
|---|---|
| Ingestion | Python script (Cloud Run Job), raw JSON partitioned by date in Cloud Storage |
| Bronze | BigQuery external tables over the files |
| Silver / Gold | dbt: cleaning, normalisation, metrics, data quality tests |
| Orchestration | Airflow: ingestion → source tests → seed → models → tests → reconciliation |
| Observability | Structured JSON logs → Cloud Logging → BigQuery |
| Reporting | Looker Studio (3 pages) |
| Infrastructure | Terraform |
Two foundational choices from day one: idempotent writes (re-running the same day rewrites the same partition) and a medallion architecture (bronze → silver → gold).
The target: Microsoft Fabric
My rule for the migration: change as little as possible, and only what the platform forces you to change.
| Component | GCP | Fabric |
|---|---|---|
| Ingestion | Python | PySpark notebook |
| Bronze | GCS + external tables | Lakehouse: files + Delta tables |
| Transformations | dbt → BigQuery | the same dbt project → Fabric Warehouse |
| Orchestration | Airflow | Fabric Data Pipeline |
| Logs | Cloud Logging → BigQuery | Delta table → gold table |
| Reporting | Looker Studio | Power BI in Direct Lake mode |
One dbt project, three targets
The core of the migration fits in one line of configuration: a new fabric target in profiles.yml. The same project runs locally (DuckDB), on BigQuery and on the Fabric Warehouse.
SQL dialect differences (geographic distance, coordinate extraction, unpivot) are isolated in a handful of macros. Everywhere else I wrote “lowest common denominator” SQL: no QUALIFY, and 1/0 flags instead of booleans.

Native dbt job in Fabric: the same project, pulled from GitHub
Spark, but only where it pays off
With 3,000 rows, Spark adds nothing to the transformations; SQL is enough. In Fabric, however, you need to write Delta for the SQL engine to read the data. The PySpark notebook does exactly that: API call → raw files → bronze Delta tables → run log.
Fabric ingests from the source, not from GCP
Routing the daily load through GCP would have created the very dependency we’re trying to remove. The notebook calls the API directly. GCP is used only once, to bring over the history (a OneLake shortcut to Cloud Storage, or a copy). After that, it can be decommissioned.
Native orchestration

Data Pipeline Fabric: notebook, dbt task, and alerts
The Data Pipeline runs the notebook, then Fabric’s native dbt job (which reads the project from GitHub), with an e-mail alert when any step fails and a daily trigger at 5 a.m. Paris time.
The proof: reconciliation
This is the part I consider the real deliverable of a migration.
I wrote a set of portable SQL checks (counts, sums, rates and distances) that run on each platform. A script then compares the results within a tolerance:
| Metric | BigQuery | Fabric | Match |
|---|---|---|---|
| Containers | 2,757 | 2,757 | ✅ |
| Recycling centres | 15 | 15 | ✅ |
| Tonnage rows | 203 | 203 | ✅ |
| Total tonnage | 1,534,618.53 t | 1,534,618.53 t | ✅ |
| Recovery rate | 78.09% | 78.09% | ✅ |
| Mean distance | 2,069 m | 2,069 m | ✅ |
| Containers more than 3 km away | 511 | 511 | ✅ |
Zero discrepancies. And I didn’t stop at the database: I replayed the same checks with a DAX query in the Power BI semantic model. Same numbers.

Reconciliation between BigQuery and Fabric: 0 discrepancies

Looker Studio (GCP)

Power BI (Fabric)
Four pitfalls I hit
1. 73.6% or 78.1%? The average of ratios
My first Looker Studio dashboard showed a recovery rate of 73.6%. The correct figure is 78.1%.
The tool was averaging a rate column computed per centre and per year, so a small 500-tonne centre weighed as much as a large 20,000-tonne one. The right calculation is a ratio of sums: Σ recovered tonnes / Σ total tonnes.
It’s the most classic mistake in BI, and exactly the kind a dashboard migration risks carrying over. That’s why in Power BI the rate is a DAX measure (DIVIDE(SUM(...), SUM(...))), never a column that gets aggregated.
2. Ids that aren’t really ids
The source has 96 empty container ids and 10 duplicated ids, sometimes on physically different containers. An “obvious” deduplication on the id silently dropped 105 real containers.
The fix: a technical key (a hash of id, type and coordinates), removing only exact copies. The anomalies stay visible through dbt tests set to warn, so they’re monitored without blocking. Business rules, on the other hand, are set to error; for example, the rate must stay between 0 and 1.
3. The SQL endpoint syncs asynchronously
In Fabric, right after the notebook wrote the Delta tables, dbt failed with Invalid object name. The Lakehouse’s SQL analytics endpoint syncs its metadata asynchronously, sometimes over several minutes.
The fix: the notebook forces the sync through the REST API (refreshMetadata) before handing over to dbt.
4. Dependency semantics
In a Fabric Data Pipeline:
- an “on completion” arrow runs even after a failure, so dbt would have run on stale data;
- two “on failure” arrows into the same alert are combined with AND, so the alert never fires.
You need an “on success” arrow to the next step, and one alert per activity.
Takeaways
- Reconciliation is the migration’s acceptance test. It has to be automated, repeatable, and reach all the way to the BI layer.
- A portable transformation tool (dbt) turns the migration into configuration plus a few macros.
- The pitfalls are rarely in the data. They’re in aggregations, in the sync between engines and in orchestration logic.
- Going back to the source, instead of chaining the old platform, lets you decommission it cleanly.
*Data: © Nantes Métropole — data.nantesmetropole.fr, Licence Ouverte (Etalab). The metrics and the definition of “recovered” (every stream except general waste and asbestos) are this project’s own assumptions, not official statistics.*

