Bronze, silver and gold in a Fabric lakehouse

The medallion architecture in Microsoft Fabric: data lands in bronze as it arrived, is cleaned in silver and shaped for reports in gold, all as Delta tables in OneLake.

Short answer: load every source into bronze exactly as it arrived, clean, type and join it into silver, and shape gold tables for one subject each, the way the reports need them. In Fabric every layer is a Delta table in OneLake, so a notebook, the SQL analytics endpoint and a Direct Lake semantic model can all read any of them.

Without layers, the code that cleans the data and the code that shapes it for a report end up in the same notebook, and the raw file is overwritten on the way. When a number looks wrong, there is nothing to go back to. Three layers give every step one job and keep the original.

What does each layer hold?

  1. Bronzethe source as it arrived, plus when and from where it was loaded
  2. Silvertyped, trimmed, one row per key, bad rows set aside
  3. Goldfacts and dimensions for one subject: sales, finance, customers
Three layers, one job each

Bronze is the record of what you received. Nothing is fixed here, so you can always rebuild silver from it. Silver is the cleaned truth: the right types, one row per business key, joined where it makes sense. Gold is shaped for the question: a star schema the semantic model reads, at the grain the reports need.

How does data move between the layers?

  1. 1
    Pipelinecopies each source into bronze, untouched
  2. 2
    Notebookcleans and merges bronze into silver
  3. 3
    Notebook or SQLbuilds the gold star schema
  4. 4
    Semantic modelreads gold in Direct Lake
From a source to a report

Landing in bronze, a notebook adds two columns and appends:

from pyspark.sql import functions as F

raw = spark.read.option("header", True).csv("Files/landing/orders/2026-10-28.csv")
(raw.withColumn("_loaded_at", F.current_timestamp())
    .withColumn("_source_file", F.input_file_name())
    .write.mode("append").saveAsTable("bronze_orders"))

Silver takes the right types, drops exact duplicates and merges by key, so a run that is repeated changes nothing:

from delta.tables import DeltaTable

latest = (spark.table("bronze_orders")
    .select(F.col("order_id").cast("int"), F.trim("customer").alias("customer"),
            F.col("amount").cast("decimal(18,2)"), F.to_date("order_date").alias("order_date"))
    .dropDuplicates(["order_id"]))

(DeltaTable.forName(spark, "silver_orders").alias("t")
    .merge(latest.alias("s"), "t.order_id = s.order_id")
    .whenMatchedUpdateAll().whenNotMatchedInsertAll().execute())

One lakehouse or one per layer?

Both work. One lakehouse per layer, often in one workspace per layer, gives each its own permissions: analysts can read gold without ever seeing bronze. One lakehouse with a prefix per table (bronze_, silver_, gold_) is simpler to start with and fine while one team owns everything. Start with what your access rules need; moving later is a copy, not a rewrite.

What goes wrong?

  • Fixing data in bronze. The moment bronze is cleaned, you have lost the original. Keep every rule in the silver step.
  • Gold built from bronze. It skips the cleaning, and two gold tables disagree about the same order. Gold reads only silver.
  • A layer nobody owns. Silver without a key and a rule list turns into a second bronze. Write down each silver table's key and its checks; the checks are the next pattern, bad rows stop at bronze.

Where can you check this?

Where do you start?

The open course A lakehouse in three layers builds bronze, silver and gold in your own Fabric workspace, from a CSV file to a Direct Lake semantic model. This pattern is the one drawn at the top of the home page, and it sits with the others on the map of my work.

Keep reading

More from the blog.

Every post

Next

Building this? Say hello.

A question about this post, a pattern you would build differently, or the next thing you want written out: Behnia reads every message.