Semantic Layer
7 min read.
Define a business metric once; a dashboard, a SQL API, and an LLM analyst all read the same governed definition. Change it once and every consumer updates — the source of truth for AI analytics.
Think of it this way: The semantic layer is the official recipe card for "Net Revenue". The dashboard chef, the SQL chef, and the AI chef all cook from the same card — change the card and every kitchen serves the new dish.
net_revenue =
SUM(orders.amount)
- SUM(refunds.amount)SUM(tax) = $80
Check your understanding
Answer from memory before you scroll back up. Pulling an idea out of your head is what makes it stay there.
Where the semantic layer sits
Fill in the missing stages between the warehouse and the answer.
Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.
"What was revenue?"
Warehouse tables
Quiz
20 questionsWhat does a semantic layer centralize?
Done with this lesson?
Sign in free to keep your progress, streak and quiz scores.