A complete SQL + Power BI project focused on analyzing loan applicant risk profiles and approval patterns using a real-world style BFSI dataset.
This project demonstrates data cleaning, preprocessing, feature engineering, exploratory analysis, and dashboard reporting — all done using MySQL and Power BI Service.
It highlights strong applied skills in BFSI analytics, SQL EDA, and data visualization.
- Project Overview
- Goals
- Tech Stack
- Repository Structure
- Dataset Description
- Data Cleaning & SQL Preprocessing
- Feature Engineering
- Exploratory Data Analysis (SQL Insights)
- Power BI Dashboard
- Key Insights
- How to Reproduce
- Project Documentation
- Resume Value
- Author
Banks and financial institutions must evaluate whether a loan applicant is likely to be approved or rejected. This project performs a complete risk analysis workflow:
✔ SQL-based cleaning & preprocessing ✔ Feature engineering (DTI, income bands, total income) ✔ Exploratory SQL analysis ✔ Power BI dashboards & KPIs ✔ Findings relevant to credit underwriting
This project is a perfect demonstration of BFSI domain knowledge, data analytics, and business reporting.
The primary objectives are:
- Clean and transform raw loan application data using SQL.
- Engineer new risk-related features: Total Income, Debt-to-Income (DTI), Income Bands, etc.
- Understand approval patterns through SQL-based EDA.
- Build Power BI dashboards for business insights.
- Provide a replicable and professional BFSI analytics pipeline.
- Data cleaning
- Data validation
- Feature engineering
- Exploratory analysis
- Interactive dashboards
- KPI cards
- Segmentation analysis
- Risk visualization
- CSV (raw + cleaned data)
- SQL script (
project_credit_risk_analysis.sql) - Power BI exported PDF
Credit-Risk-Analysis/
│
├── Data/
│ ├── loan.csv
│ ├── loan_cleaned_data.csv
│
├── SQL_Queries/
│ └── project_credit_risk_analysis.sql
│
├── PowerBI/
│ └── credit_risk_analysis_HM.pdf
│
├── Documentation/
│ └── Credit_Risk_Analysis_Project_Documentation.doc
│
└── README.md
The dataset includes demographic, financial, and loan-related information such as:
- ApplicantIncome
- CoapplicantIncome
- LoanAmount
- Loan_Amount_Term
- Credit_History
- Property_Area
- Dependents
- Education
- Self_Employed
- Loan_Status (Approved / Rejected)
These variables are used to evaluate the risk of default and loan approval likelihood.
Performed completely in MySQL Workbench, documented in:
📄 SQL_Queries/project_credit_risk_analysis.sql
- Handling missing values (LoanAmount, Loan_Term, Credit_History)
- Cleaning categorical fields (Dependents = "3+" → 3)
- Standardizing strings
- Converting numeric text to integer/float
- Extracting engineered fields for risk analysis
The following new fields were created using SQL:
ApplicantIncome + CoapplicantIncome
(LoanAmount * 1000) / Total_Income
- Low
- Medium
- High
- Low Risk
- Medium Risk
- High Risk
These transformations significantly improved insight into credit behavior.
Examples of SQL insights performed:
SELECT
COUNT(*) AS total,
SUM(Loan_Status = 'Y') AS approved,
ROUND(SUM(Loan_Status = 'Y') / COUNT(*) * 100, 2) AS approval_rate
FROM loan_cleaned;SELECT Credit_History,
COUNT(*) AS total,
ROUND(SUM(Loan_Status='Y') / COUNT(*) * 100, 2) AS approval_pct
FROM loan_cleaned
GROUP BY Credit_History;Applicants with higher income bands consistently show better approval chances.
Lower DTI → Higher approval Higher DTI → Higher risk → Lower approval
The full visualization is available here:
-
Overall approval rate
-
Average loan amount
-
Approval by:
- Credit history
- Income band
- Property area
- Dependents
-
DTI distribution
-
Drill-down for individual applicants
Applicants with Credit_History = 1 show very high approval percentages.
Low-income groups show significantly lower approval rates.
Applicants with high DTI are more frequently rejected.
Urban areas and applicants with fewer dependents show higher approval chances.
Load the dataset and execute:
project_credit_risk_analysis.sql
This generates loan_cleaned table.
Export the SQL result to:
Data/loan_cleaned_data.csv
Import the cleaned CSV and recreate visuals (or view exported PDF).
Documentation/Credit_Risk_Analysis_Project_Documentation.doc
Contains methodology, screenshots, queries, and explanations.
PowerBI/credit_risk_analysis_HM.pdf
This project highlights your strength in:
- ✔ SQL Data Cleaning & EDA
- ✔ Power BI Dashboard Development
- ✔ BFSI Domain Understanding
- ✔ Credit Risk Analytics
- ✔ Feature Engineering
- ✔ Realistic Approval Pattern Insights
This is a perfect portfolio project for roles in:
- Data Analysis
- Business Intelligence
- Risk Analytics
- Banking & Financial Analytics
Harinath Makka BFSI Analyst • SQL Developer • Power BI Specialist (From Hyderabad, India)