Unifying B2B Healthcare Practitioner (HCP) Revenue & DTC Patient Demand Generation in BigQuery, dbt & Power BI
Architectural Challenge & Business Bottleneck
Commercial leadership needed a single source of truth separating B2B clinic/practitioner purchasing (hcp.* domains & loyalty tiers) from DTC consumer demand-generation media (Meta, Google Ads, GA4clinic finder flows), while preventing many-to-many fanout bugs in executive Power BI dashboards.
Production Stack
Engineered Solution & Data Pipeline Topology
- ▹Architected a multi-layered BigQuery & dbt project (staging → intermediate → marts) with strict grain enforcement (campaign-level vs. brand-level vs. GA4 event-level).
- â–¹Engineered dynamic table watermark lookbacks (MAX(date) - 3) using BigQuery incremental insert_overwrite partitioning to handle late-arriving ad platform conversions at minimal slot cost.
- â–¹Designed the Power BI DAX V2 Semantic Model (.SemanticModel TMDL definitions) with isolated Strategy_KPI_Mapping calculation bridges and custom Deneb (Vega-Lite) executive KPI cards.