Banking Data Storytelling & Risk Analytics

Uncovering customer demographics, loan default risks, and transaction behaviors for 2,939 bank customers.

The Business Problem

During the Data Science Nigeria (DSN) "AI Classes In Every City" hackathon, the challenge was to uncover actionable patterns within a banking dataset of nearly 3,000 customers. Stakeholders needed to understand loan default risks, customer demographics, and operational bottlenecks (such as peak transaction times) to drive strategic marketing and lending decisions.

The Solution

I imported the raw Excel dataset into Power BI, overcoming data modeling challenges (like ambiguous relationships and categorical IDs) by flattening the model using Merged Queries in Power Query. I then engineered advanced DAX measures to dynamically format regional currency (Naira ₦) and automatically categorize customers into Loan Risk Tiers before building a 4-page interactive dashboard.

Power BI Excel DAX

The Loan Analytics Dashboard highlighting total loan amounts, top borrowing demographics, and automated risk categorization.
(Use arrow keys or buttons to navigate • Click any image to view full size)

Architecture & Data Flow

Hackathon Excel Dataset → Power Query (Data Cleaning & Merged Queries for Relationship Resolution) → Power BI (Star Schema Data Modeling) → Advanced DAX Engineering → Interactive Dashboards.

Excel → Power Query → Star Schema → DAX → Power BI Dashboards

Data Engineering

Key technical components of the banking analytics project:

Data Modeling & Relationship Resolution

Data Modeling & Relationship Resolution

DAX Measure Engineering

DAX Measure Engineering

DAX Measures & Risk Automation

Here's a sample of the advanced DAX measures engineered to automate risk categorization and dynamic currency formatting:

DAX

// Automated Loan Risk Tiering based on Loan-to-Deposit Ratio
Loan Risk Tier = SWITCH(
    TRUE(),
    [Loan to Deposit Ratio] > 1000, "🚨 Critical Risk",
    [Loan to Deposit Ratio] > 5,    "⚠️ High Risk",
    [Loan to Deposit Ratio] > 1,    "⚠️ Moderate Risk",
    [Loan to Deposit Ratio] > 0,    "✅ Low Risk",
    "No Risk"
)

// Dynamic Loan Display with Naira Currency Format
VAR amt = SUM(Loan[Bank Loans])
RETURN
SWITCH(
TRUE(), 
    amt >= 1_000_000_000_000, FORMAT(amt / 1_000_000_000_000, "₦#,0.00") & "T",
    amt >= 1_000_000_000, FORMAT(amt / 1_000_000_000, "₦#,0.00") & "B",
    amt >= 1_000_000, FORMAT(amt / 1_000_000, "₦#,0.00") & "M",
    amt >= 1_000, FORMAT(amt / 1_000, "₦#,0.00") & "K",
    FORMAT(amt, "₦#,0")
)
                    

Key Findings & Results

Here's what the hackathon analysis revealed:

2,939

Total Customers Profiled

₦1.29T

Domiciliary Balances

6PM-12AM

Peak Transaction Hours

60+

Dominant Age Demographic

Key Insights

  • Risk Profiling: A significant portion of loan customers were flagged as "Critical Risk" due to aggressive borrowing behaviors relative to their deposits.
  • Demographic Targeting: Senior Citizens (60+) dominate both the general customer base and represent the largest group of borrowers.
  • Operational Bottlenecks: Peak transaction volumes consistently occur between 6 PM and 12 AM, suggesting a strong need for targeted evening services and robust 24/7 IT support.
  • Account Dominance: Domiciliary accounts hold the highest opening balances (₦1.29T), signaling a lucrative base of international or high-net-worth clients.