Databricks Medallion Lakehouse
Al Khayyat Investments · 2026
Designed and implemented a medallion lakehouse on Azure Databricks that brings CRM, POS, loyalty and digital data together and feeds a certified Power BI dataset for the whole CRM & Loyalty programme.
Business problem
CRM and loyalty reporting needs data from many systems: CRM, point of sale, the loyalty platform and digital channels. Without a governed, layered platform, every report re-cleans the same data and numbers drift between dashboards.
Solution
Ingestion pipelines land raw data in Bronze with incremental loads and schema handling. PySpark/SQL ETL cleanses, de-duplicates and conforms it into Silver, with data quality checks between layers. Business-ready Gold tables feed Power BI through Delta Sharing, with a daily 06:00 GST full refresh and hourly incremental refresh for operational tiles. Scheduled jobs compute RFM scores, churn probability, CLV predictions and basket affinity (FP-Growth).
Solution architecture
01 · Sources
CRM, POS, loyalty and digital channels
02 · Bronze
Raw incremental ingestion · scheduled jobs
03 · Silver
Cleansed, de-duplicated, conformed · DQ checks
04 · Gold
Business-ready tables · RFM, CLV, churn scores
05 · Serving
Delta Sharing → certified Power BI dataset
Simplified flow · detailed architecture diagram placeholder
Technology stack
- Azure Databricks
- Delta Lake
- PySpark
- SQL
- Delta Sharing
- Power BI
Business impact
- A single source of truth for 15 CRM & Loyalty dashboards.
- Automated daily and hourly refresh, with no manual data preparation.
- Lower platform spend through cluster right-sizing, auto-terminating job clusters, schedule tuning and Delta OPTIMIZE.
Screenshots
Screenshot placeholder
Screenshot placeholder