Overview
This Azure Databricks project prepares anonymized bank statements and transactions from Capital One, Credit One Bank, and TD Bank for governed financial analysis. The documented flow connects CSV ingestion, Bronze–Silver–Gold processing, reconciliation, dimensional modeling, anomaly analysis, and a Power BI publication layer.
The current evidence describes bank statement processing. Supplier invoices, automated document receipt, and operational payment management belong to the proposed extension of the platform.
Project 01 prepares and publishes the governed data used by Project 02 · Power BI Reporting & Analytics.
Read the numbered documents below in their supplied order of importance, from 01 through 06.
Technologies & Skills
The groups below connect the project’s technologies and skills to the available evidence. Planned capabilities are listed separately.
| Skill group | Scope & status | Evidence |
|---|---|---|
| 01 Cloud & Solution Architecture | Documented Azure solution architecture, Lakehouse design, Data Lake and Data Warehouse concepts, and the medallion model. | 01 · Architecture 02 · Medallion flow |
| 02 Azure Databricks & Governance | Documented Unity Catalog catalogs, schemas, volumes, Delta tables, streaming tables, materialized views, access design and lineage. Identity-based acceptance remains outside the supplied evidence. | 04 · Governance 06 · Lineage |
| 03 Data Engineering & Processing | Source available Auto Loader, batch and streaming ingestion, Python, PySpark, embedded Spark SQL, ETL/ELT and Delta Lake transformations. | Silver source Shared functions |
| 04 Data Pipelines & Orchestration | Documented · extension proposed Lakeflow Pipelines, Jobs and task dependencies. The five-task Job is documented; adding Bronze as a sixth task remains proposed. | 03 · Orchestration 05 · Inventory |
| 05 Data Modeling & Transformation | Source available Dimensional models, account/institution/date dimensions, statement and transaction facts, deterministic keys and decimal-safe enrichment. | Gold source 06 · Lineage |
| 06 Data Quality & Performance | Source and documentation available Conversion checks, reconciliation, key integrity, quality gates and execution summaries. Performance tuning and benchmarks are not demonstrated in the supplied material. | Silver checks Gold quality gate Reported observations |
| 09 Analytics & Business Intelligence | Documented Reporting snapshots, business views, the publication dataset and the SQL Warehouse access path feeding Project 02. | 02 · Publication layer Project 02 · Handoff |
01 · Lakehouse architecture
02 · Medallion data flow
Point A: orchestration is developed further in Diagram 03 — Medallion orchestration.
Power BI Banking Analytics & Data Quality
This case study covers data engineering through the governed publication layer. The connected Power BI case study presents the model and report experience.
Explore the Power BI project →| Medallion stage | Documented responsibility |
|---|---|
| Sources & Bronze | Anonymized statement and transaction CSVs are read from a Unity Catalog volume. Auto Loader retains ingestion state; Bronze contains statements_raw and transactions_raw. The source PDF storage path has not been established. |
| Silver | Prepare accounts, statements, and bank_transactions; derive statement_reconciliation and transaction_statement_checks for reconciliation and consistency controls. |
| Dimensions & Gold | Prepare institution, account, and date dimensions; run blocking input checks and enrich statement and transaction facts. AUTO CDC FROM SNAPSHOT maintains the fact tables as current-state SCD1 records. |
| Reporting | Publish Delta snapshots, business views, anomaly outputs, and persistent execution summaries. Snapshot history is separate from the current-state SCD1 fact tables. |
| Access & Power BI | Expose the prepared reporting dataset through a_access.pbi_reporting_dataset. The Power BI model and Desktop report captures are presented separately in Project 02. Service publication and refresh evidence remain outside these materials. |
03 · Medallion orchestration
The existing five-task sequence starts with Silver. The proposed extension adds bronze_ingestion at the beginning so the Job follows the full Bronze–Silver–Gold medallion model.
| Task in proposed sequence | Responsibility | Documented outputs |
|---|---|---|
| 01 · bronze_ingestion · Proposed | Auto Loader · Proposed addition to the Job | statements_rawtransactions_raw |
| 02 · upstream_pipeline_1 | Silver pipeline | accountsstatementsbank_transactionsstatement_reconciliationtransaction_statement_checks |
| 03 · dimensions | Notebook 14 · Dimensions | dim_institutiondim_accountdim_date |
| 04 · gold15 | Gold pipeline · Input checks, enrichment & AUTO CDC | gold15_input_checksfact_statements_enrichedfact_bank_transactions_enrichedfact_statementsfact_bank_transactions |
| 05 · reporting | Notebook 16 · Snapshots, views & execution summaries | reporting_transaction_snapshotsreporting_statement_snapshotsreporting_anomaly_snapshotsreporting_powerbi_snapshotsbank_transaction_insightsstatement_insightsbanking_anomaliesa_access.pbi_reporting_datasetreporting_run_eventsreporting_run_checksreporting_summary |
| 06 · final_audit | Notebook 20 · Final execution tracking | a_gold.reporting_job_runsgold20_summary (temporary view) |
Bronze integration into the Job remains proposed. The existing Job is described without a schedule; Power BI refresh remains optional and unconfigured.
04 · Unity Catalog governance
The governance document covers the catalog, schemas, volume, access policies, quality checks, audit, lineage, and verification limits.
| Control area | Documented scope |
|---|---|
| Catalog & storage | The catalog invoice_project_ws organizes a_bronze, a_silver, a_gold, and a_access. The invoice_files volume holds CSV sources and Auto Loader state. Logical catalog names do not establish physical Azure storage locations. |
| Reader access | The governance batch documents five a_access views with pseudonymized identifiers and NULL values for raw paths and text. Amounts, dates, and control fields are retained. This access batch is distinct from the Gold reporting publication view. |
| Groups & privileges | Developer, pipeline, and reader roles have planned privilege matrices. Membership, ownership, and Run as migration are outside the delivered batch; acceptance with separate identities remains to be established. |
| Quality & traceability | The governance documentation covers 17 checks, including balances, keys, conversions, uniqueness, and statement-to-transaction links. Audit and lineage checks use system tables and a defined observation window. |
| Storage verification | The supplied map leaves the actual ADLS Gen2 path, volume type, managed roots, external locations, and storage credentials to be identified in the workspace. |
05 · Notebooks & code samples
Project notebooks and modules are listed by responsibility. Three selected Python files can be opened below to explore the Silver pipeline, shared functions, and Gold transformation logic.
| Area | Notebook, file or folder |
|---|---|
| Shared utilities | 00_check_Utilitiesutilities/common_functions.pyView code ↗ |
| Bronze ingestion | 01_Ingest_Statement_CSV_to_Bronze |
| Silver preparation | 02_Prepare_Silver_Data02_invoice_silver_pipeline.pyView code ↗ |
| Governance | 03_unity_catalog_governance.py |
| Dimensions | 04_Build_Gold_Dimensions14_Refresh_Dimensions |
| Gold pipeline | 15_Setup_Gold_Lakeflow_Pipelinegold15_lakeflow_v1/gold_logic.pyView code ↗ |
| Insights & orchestration | 16_Validate_Insights_and_Anomalies20_Validate_Orchestration |
Selected code examples
| Example | Language | What it demonstrates | Source |
|---|---|---|---|
Silver pipeline02_invoice_silver_pipeline.py | Python / PySpark + Spark SQL predicates | Typed streaming datasets, fail-on-quality rules, account profiles, statement reconciliation and transaction links. | View code |
Shared functionscommon_functions.py | Python / PySpark + Spark SQL expressions | Reusable key generation, text normalization, quality signals and validated Spark SQL casts. | View code |
Gold transformation logicgold_logic.py | Python / PySpark DataFrame API | Selective input loading, fact enrichment, decimal-safe aggregates, key checks and a quality gate. | View code |
Spark SQL is embedded in the Silver quality predicates and the shared module’s try_cast expressions. Their reading pages include a separate expressions tab. The Gold file uses the PySpark DataFrame API. These files have not been executed for this portfolio review.
06 · Object lineage
English presentation names are used throughout these documents. Translation does not rename deployed workspace objects; their identifiers may differ.
Results & current status
| Evidence or stage | Current state |
|---|---|
| Documented implementation | Bronze and Silver objects, Gold dimensions and facts, reporting snapshots, access views, and a proposed six-task medallion orchestration design are represented in the supplied materials. The existing five-task job is described as created without a schedule. Bronze ingestion is a proposed additional task. |
| Reported observations | The end-to-end diagram reports 3 statements and 54 observations for Batch 15. The governance volume batch reports 1 visible volume, 4 of 4 source tables read, 6 distinct CSV paths, 12 path matches, and 0 issues. |
| Power BI · Project 02 | Project 02 now includes seven-table model evidence, three populated Power BI Desktop report captures, and DAX reading samples. Service publication, scheduled refresh, and business approval are not established by those captures. |
| Proposed extension | PDF extraction with OCR when needed, supplier invoices, Azure SQL operational data, payment actions, reminders, and a management application are shown as proposed capabilities. |
| Verification scope | These are documentation-backed observations. The Databricks workspace, notebooks, access identities, and Power BI reports were not executed or independently revalidated for this portfolio update. |
Future Enhancements
These planned enhancements extend the data engineering project beyond the implementation presented above.
| Enhancement | Status | Purpose |
|---|---|---|
| Azure AI Document Intelligence | Planned | AI & Document Processing Add document extraction to support the future document-processing flow. |
| CI/CD & automated deployment | Planned | DevOps & Deployment Introduce versioned delivery and automated deployment of the data solution. |
| Streamlit | Planned | Operational Database & Application Develop an application interface for the operational extension. |
Azure SQL operational management is already shown as a proposal in Diagram 01. Its implementation has not been established by the supplied materials.
