Skip to main content
InterviewHubPRO
Section Overview
Q18

Question 18 of 50

Part 2: Advanced Modeling, Incremental Builds & Macros (Mid-Level)

36%
dbt Analytics Engineering (50 Qs)•Part 2: Advanced Modeling, Incremental Builds & Macros (Mid-Level)

What is the dbt Semantic Layer and MetricFlow?

junior LeveldbtAdvanced Modeling

In Simple Words: In organizations, marketing might calculate "Active Users" as logged in within 30 days, while finance calculates it as 7 days. The dbt Semantic Layer (powered by MetricFlow) allows data teams to define metrics declaratively in YAML once:

  • Upstream tools (Tableau, Looker, Hex, Google Sheets) query the semantic layer via GraphQL/JDBC instead of writing raw SQL.
  • Guarantees unified, certified definitions across the entire enterprise.