This project analyses the performance and financial health of a synthetic Zambian retail bank, using customer, account, deposit, transaction, lending, fraud and branch-level data.
The analysis is designed around a simple question:
What does the bank's data say about growth, funding, lending activity, customer behaviour, operational activity and risk?
The analysis combines SQL for data extraction, Python for data generation and analytical checks, MySQL for data storage, and Power BI for interactive reporting.
The main performance period is 2021–2025, with additional lending analysis covering 2023–2025. Transaction and fraud activity also contains 2026 records, which are treated separately rather than being mixed into the five-year performance trend.
| Metric | Result |
|---|---|
| Customers | 10,000 |
| Accounts | 15,426 |
| Current account balances | K2.031bn |
| Available balance | K2.009bn |
| Loans recorded | 5,000 |
| Cumulative loan disbursements | K290.918m |
| Outstanding loan balance | K90.726m |
| Customer acquisition, 2021–2025 | +21.0% |
| Account openings, 2021–2025 | +343.1% |
| Loan disbursements, 2023–2025 | +121.0% |
| Fraud alerts | 43,483 |
Customers increased from 6,741 customers at the start of 2021 to 10,000 at the end of 2025, a total increase of 67.41%. Growth was not uniform: customer acquisition fell slightly in 2022 before increasing in 2023 and 2024. By 2025, growth had slowed to 13.3%.
New account openings followed a very different pattern. They increased from 847 in 2021 to 3,753 in 2025, representing a 343.1% increase. Annual account openings grew by more than 40% in every year of the period.
The difference between customer and account growth is significant. The dataset contains 15,426 accounts for 10,000 customers, or approximately 1.54 accounts per customer. This suggests that account growth is being driven faster than the underlying customer base, although the dataset does not by itself establish why.
The current account snapshot contains K2.031 billion in balances, compared with K2.009 billion available.
The difference is approximately K22.1 million, equivalent to 1.09% of current balances.
Deposit balances are concentrated in a relatively small number of account products. The five largest account categories by balance account for approximately 72.5% of total balances. Salary and Basic Savings accounts alone account for 35.5%.
This means the overall deposit position is strongly influenced by a limited number of products, making product-level movements important when assessing funding behaviour.
The lending portfolio contains 5,000 loan records, with cumulative disbursements of K290.9 million and an outstanding balance of K90.7 million.
Loan disbursement activity increased considerably between 2023 and 2025. Annual disbursements increased from K54.1 million in 2023 to K64.7 million in 2024, before reaching K119.6 million in 2025.
That represents a 121.0% increase over 2023 and an 84.9% increase between 2024 and 2025.
The increase was mainly volume-driven. Loan counts increased from 1,145 in 2024 to 1,974 in 2025, while the average disbursement per loan increased from approximately K56,494 to K60,602.
The customer portfolio contains:
51.6% low-risk customers
33.0% medium-risk customers
15.4% high-risk customers
The loan data also contains credit scores and estimated default probabilities, allowing the lending portfolio to be examined beyond simple loan volumes.
There are 76 loan records marked as Defaulted, representing 1.52% of the 5,000 loan records. This should not be interpreted as a formal default rate because the 5,000 records include statuses such as rejected and approved loans.
The fraud dataset contains 43,483 alerts.
Approximately 88.0% of alerts are classified as low severity, while 10.9% are medium severity, 1.1% are high severity and a very small number are classified as critical.
The investigation data contains 14,182 alerts marked as false positive and 992 alerts carrying a confirmed flag. These figures describe the current workflow classifications in the dataset; they should not be treated as a formal fraud detection accuracy or fraud rate without a defined modelling denominator.
The Power BI report breaks the analysis into:
Customer growth and composition
Deposit and account performance
Transaction activity
Lending and credit risk
Fraud monitoring
Branch performance
Portfolio and operational health
The objective is not simply to show whether a number is high or low. The report focuses on how the numbers have changed, where activity is concentrated and what those movements mean for the bank's overall position.
Kwacha Bank uses a synthetic relational banking dataset designed to represent the type of information that could be found across a retail banking environment.
The data covers several areas of the bank's operations rather than focusing on a single KPI. This makes it possible to examine relationships between customers, accounts, deposits, transactions, loans, risk and branches.
The database is stored in MySQL and analysed using SQL, Python and Power BI.
Customer records contain information used to analyse:
Customer segments
Province
Employment status
Gender
Risk classification
Customer acquisition
The customer dataset contains 10,000 customers.
Account data is used to examine:
Account type
Account openings
Account balances
Current versus available balances
Deposit concentration
There are 15,426 account records, giving approximately 1.54 accounts per customer in the current dataset.
Transaction data contains:
Transaction type
Transaction method
Transaction value
Transaction date
Device information where available
The transaction channel dataset contains 1,000,000 transactions across branch, mobile banking, POS, internet banking, ATM and system channels.
The lending data contains:
Loan category
Loan product
Loan status
Amount disbursed
Outstanding balance
Interest rate
Credit score
Default probability
Payment status
Branch
There are 5,000 loan records.
Fraud monitoring data contains:
Alert date
Alert type
Severity
Province
Detection method
Investigation status
Confirmation status
The fraud data contains 43,483 alerts after reconciliation of the yearly totals and category breakdowns.
Branch-level data is used to examine:
Deposit balances
Outstanding loans
Customers
Employees
Operating costs
Deposit-to-cost relationships
The branch analysis provides a way of comparing the performance and scale of different locations.
The project does not force every metric into the same time period because the available data does not cover every measure consistently.
| Analysis | Period |
|---|---|
| Customer acquisition | 2021–2025 |
| Account openings | 2021–2025 |
| Loan disbursements | 2023–2025 |
| Transaction activity | 2025–2026 |
| Fraud alerts | 2025–2026 |
| Deposit balances | Current snapshot |
| Branch balances | Current snapshot |
The five-year customer and account analysis therefore forms the main growth view, while lending, transaction and fraud analysis use the periods available for those datasets.
The analysis follows four stages.
Python was used to generate the synthetic banking data, while MySQL was used to store the resulting relational tables.
SQL queries were used to calculate totals, annual trends, category distributions, portfolio balances and branch-level measures.
The outputs were checked for:
Record counts
Category totals
Yearly totals
Missing values
Relationship consistency
Reconciliation between summary tables
One important example was the fraud dataset. The yearly totals and all major breakdowns reconcile to 43,483 alerts, rather than the initially assumed 53,483.
Power BI was used to turn the prepared data into an interactive report. Measures were created using DAX where calculations needed to respond dynamically to filters and slicers.
The dashboard is therefore the presentation layer of the analysis rather than the analysis itself. The SQL and Python work provide the underlying calculations and validation.
Several limitations are important when interpreting the results.
First, the available time periods differ between datasets. A 2025–2026 transaction trend cannot be presented as a five-year trend.
Second, some figures are snapshots rather than annual observations. Current deposits and branch balances therefore describe the position represented by the dataset rather than a five-year deposit trend.
Third, loan statuses include rejected and approved records alongside active and completed loans. Consequently, simple calculations such as defaulted loans / all loan records should not be presented as a formal default rate.
Finally, the branch efficiency measure is a project-specific deposit-to-monthly-cost proxy. It is useful for comparison within the dataset but is not the same thing as a conventional bank efficiency ratio.
Several issues had to be considered before turning the database into a banking performance report.
The biggest analytical limitation is that the datasets do not all cover the same period.
Customer acquisition and account openings provide a longer historical series, while lending begins in 2023. Transaction and fraud activity currently covers 2025 and 2026.
This means the report cannot honestly describe every area of the bank's performance over the full 2021–2025 period.
Rather than filling the gaps with assumptions, the analysis keeps the periods separate.
The fraud data initially appeared to contain 53,483 alerts based on an earlier interpretation of the output.
A reconciliation of the underlying results showed:
17,113 alerts in 2025 + 26,370 alerts in 2026 = 43,483 alerts.
The severity, province, detection method and investigation breakdowns also each total 43,483.
The reconciled figure of 43,483 is therefore used throughout the final analysis.
This was an important validation step because a report can look perfectly polished while still being built around an incorrect total.
Customer acquisition increased by 21.0% between 2021 and 2025.
Account openings increased by 343.1%.
Those two measures are moving at very different speeds.
That does not automatically mean that customer engagement increased by a particular amount. Customers can hold multiple accounts, and the dataset does not provide enough information to attribute the difference to one specific cause.
The correct interpretation is that account creation expanded substantially faster than the recorded customer base.
Deposit balances represent a position at a point in time.
Loan disbursements, transaction counts and fraud alerts are flows accumulated over periods.
Comparing these measures requires care.
For example, the K90.7 million outstanding loan balance should not simply be divided by K290.9 million of cumulative disbursements and described as a conventional portfolio ratio. The two figures do not represent the same measurement basis.
Similarly, the current outstanding balance can be compared with the current deposit snapshot, but this should be described as a snapshot relationship rather than a regulatory loan-to-deposit ratio.
The 5,000 loan records contain several different statuses:
Active
Completed
Rejected
Approved
Written Off
Overdue
Defaulted
Because rejected loans are included in the overall record count, 76 defaulted records out of 5,000 is not a formal default rate on originated loans.
The figure is still useful as a portfolio status measure, but the distinction matters.
The branch analysis uses deposits relative to monthly operating cost as a comparison measure.
The resulting values range from approximately 72.6 to 686.0.
This shows a large difference between branches in the relationship between deposits and reported monthly costs.
However, the measure does not capture revenue, transaction volume, staffing productivity, loan income, branch size or other operating factors. It is therefore treated as a proxy for comparison, not a definitive measure of branch efficiency.
Device data does not cover the full one-million-transaction dataset.
The recorded device field contains approximately 275,845 transactions, so smartphone and mobile-phone shares should be calculated against that device-recorded subset rather than against all transactions.
This distinction prevents a subset measure from being presented as a bank-wide transaction statistic.
These issues affected how the final report was written.
Where the data supports a percentage or trend, it is calculated.
Where the data does not support a conclusion, the limitation is stated instead.
That is an important part of the analysis because the purpose of a banking report is not to make every number look meaningful. It is to distinguish between what the data actually shows and what would require additional information.
The Power BI report is organised around the main areas of a retail bank rather than around the database tables themselves.
The pages move from the customer base into deposits, transactions, lending, risk, fraud and branch performance.
The customer section establishes the size and composition of the bank's customer base.
The analysis looks at:
Customer acquisition over time
Customer segments
Geographic distribution
Employment status
Gender
Customer risk classification
The most important distinction here is between growth in customers and growth in accounts.
New customer acquisition increased from 1,103 in 2021 to 1,335 in 2025, while account openings increased from 847 to 3,753 over the same period.
The deposits section examines where the bank's funding base sits.
The report looks at:
Account types
Account counts
Deposit balances
Branch deposits
Current versus available balances
The current balance position is K2.031 billion, with K2.009 billion available.
The five largest account categories account for approximately 72.5% of total balances, which makes the composition of deposits important when evaluating the overall funding position.
The transaction section examines how customers and the bank move money through different channels.
The dataset contains one million transactions across:
Branch
Mobile Banking
POS
Internet Banking
ATM
System
By transaction count, branch activity represents 22.3% and mobile banking 21.0%, making them relatively close in volume.
The value distribution is different. System transactions account for a much larger share of transaction value than their share of transaction count, indicating that transaction volume and transaction value tell different stories.
The transaction page therefore allows the user to switch between activity and value, rather than treating transaction count as a proxy for financial value.
The lending section moves from loan volume into portfolio composition and credit risk.
It covers:
Loan disbursements
Loan categories
Loan products
Outstanding balances
Loan status
Payment status
Credit scores
Default probabilities
Annual disbursements increased from K54.1 million in 2023 to K119.6 million in 2025.
The 2025 increase was particularly large: disbursement value rose 84.9% from 2024, while loan count increased 72.4%.
The average loan disbursement also increased from approximately K56,494 to K60,602, meaning the growth was not solely the result of issuing more loans.
The fraud section looks at the bank's monitoring activity rather than treating every alert as confirmed fraud.
The dataset contains 43,483 alerts.
The report separates:
Alert volume
Severity
Alert type
Detection method
Investigation status
Confirmed status
Geographic distribution
Most alerts are low severity, with 38,243 of 43,483 alerts, or approximately 88.0%, classified as low severity.
The investigation data also shows the difference between an alert being generated and an alert eventually being classified within the investigation workflow.
The branch section compares locations using:
Deposits
Outstanding loans
Customers
Employees
Monthly operating costs
Deposit-to-cost proxy
Longacres has the highest recorded deposit balance at approximately K80.7 million, while Chinsali Main has approximately K22.3 million.
The branch comparison should be read as a distribution analysis rather than a simple league table. A branch with a lower deposit-to-cost value may have a different role, customer mix or operating structure that is not captured by this dataset.
The report can be explored by applying filters to dimensions such as:
Year
Branch
Province
Customer segment
Account type
Loan category
Loan status
Risk level
Transaction channel
The purpose of the filters is to move from the bank-wide number to the underlying segment.
For example, instead of stopping at total deposits, a user can examine which account types contribute to those deposits and which branches hold those balances.
That is where the Power BI report becomes useful as an analytical tool rather than simply a collection of charts.
The project follows this workflow:
Python → MySQL → SQL analysis → DAX → Power BI → Web presentation
Python creates the synthetic banking environment.
MySQL stores the relational data.
SQL extracts and validates the measures.
DAX handles calculations required inside Power BI.
Power BI provides the interactive analytical layer.
The website then provides the written context around the dashboard.
The recorded customer base increased from 1,103 in 2021 to 1,335 in 2025, a 21.0% increase.
Growth was uneven across the period. Customer acquisition fell by 1.3% in 2022, then increased by 10.1% in 2023 and 7.8% in 2024. Growth slowed to 3.3% in 2025.
The overall customer base was therefore still expanding, but the rate of expansion was lower at the end of the period than in the preceding two years.
Account openings increased from 847 in 2021 to 3,753 in 2025, an increase of 343.1%.
Annual growth in account openings remained above 40% throughout the period, reaching 49.3% in 2025.
With 15,426 accounts across 10,000 customers, the dataset contains approximately 1.54 accounts per customer.
The data therefore shows a substantial expansion in the number of accounts relative to the number of customers. Further customer-level data would be required to determine whether this reflects greater product adoption, multiple accounts per customer or changes in account-opening behaviour.
The current deposit snapshot is K2.031 billion.
The five largest account categories by balance account for approximately 72.5% of the total.
Salary Accounts and Basic Savings Accounts alone hold approximately K721.3 million, representing 35.5% of total current balances.
This concentration means that changes in a relatively small number of account products can have a material effect on the bank's overall deposit position.
The available balance is K2.009 billion, leaving a difference of approximately K22.1 million, or 1.09% of current balances.
Loan disbursements increased from K54.1 million in 2023 to K119.6 million in 2025, representing growth of 121.0%.
The largest movement occurred between 2024 and 2025:
Loan count: +72.4%
Disbursement value: +84.9%
Average loan size: approximately K56,494 → K60,602
The increase in disbursement value was therefore driven primarily by a larger number of loans, with a smaller contribution from an increase in average loan size.
The current outstanding balance is K90.7 million.
The loan status distribution shows:
2,616 active loans
1,083 completed
701 rejected
255 approved
169 written off
100 overdue
76 defaulted
The 76 defaulted records represent 1.52% of all 5,000 loan records.
However, because the dataset includes rejected and approved records, this should not be treated as a formal default rate.
The outstanding balances attached to written-off, overdue and defaulted statuses total approximately K4.95 million, equal to 5.45% of the total outstanding balance.
That figure is best read as a measure of balances sitting in these three problem-status categories rather than as a regulatory non-performing loan ratio.
Of the 10,000 customers:
5,164 (51.6%) are classified as low risk
3,295 (33.0%) are medium risk
1,541 (15.4%) are high risk
The majority of the customer base therefore falls into the low- or medium-risk categories.
The lending data also contains individual credit scores and estimated default probabilities, which creates scope for more detailed credit-risk modelling beyond the descriptive analysis presented here.
Lusaka contains 2,950 customers, followed by Copperbelt with 1,895.
Together, the two provinces account for 48.5% of the customer base.
The distribution provides context for interpreting other geographic measures. For example, Lusaka and Copperbelt also account for approximately 48.4% of fraud alerts, meaning their large alert counts are broadly consistent with their share of the customer base.
This does not establish that fraud risk is equal across provinces, because transaction exposure and transaction volumes would also be needed to calculate meaningful alert rates.
The transaction dataset contains 1,000,000 transactions.
By transaction count:
Branch: 22.3%
Mobile Banking: 21.0%
POS: 19.5%
Internet Banking: 16.7%
ATM: 11.9%
System: 8.6%
Branch and mobile banking therefore have relatively similar transaction volumes.
The value distribution is different, with system transactions accounting for a substantially larger proportion of total transaction value than their share of transaction count.
This is a useful distinction: a channel can generate many transactions without necessarily moving the largest amount of money.
The reconciled fraud dataset contains 43,483 alerts.
Of these:
38,243 (88.0%) are low severity
4,742 (10.9%) are medium
486 (1.1%) are high
12 (0.03%) are critical
The investigation workflow also records 14,182 alerts as false positives and 992 alerts with a confirmed flag.
These numbers describe the classification and investigation workflow in the synthetic dataset. They should not be interpreted as a model's precision, recall or fraud rate without a defined ground-truth dataset and modelling framework.
The branch deposit balances range from approximately K80.7 million at Longacres to K22.3 million at Chinsali Main.
The deposit-to-monthly-cost proxy ranges from 72.6 to 686.0.
This is a large spread, but it should not be treated as a definitive ranking of branch performance. The measure does not include revenue, loan income, transaction activity, customer service workload or other branch-level factors.
The more useful interpretation is that the branches operate at materially different scales relative to their reported monthly costs.
The data describes a bank with expanding customer activity, much faster growth in account openings, a sizeable deposit base and a rapidly expanding lending portfolio.
The main point from the analysis is that growth is occurring at different speeds across the business.
Customer growth is relatively moderate, account growth is much faster, and lending activity accelerated sharply from 2024 to 2025. At the same time, the bank carries a measurable set of higher-risk customers and loan balances in overdue, defaulted and written-off statuses, while its fraud monitoring system generates a substantial alert workload.
The next level of analysis would require longer and more consistent time series for deposits, transactions and fraud, together with additional customer-level and loan-level fields. That would make it possible to move from descriptive performance reporting into deeper measures such as customer profitability, product penetration, cohort behaviour, delinquency rates, fraud detection performance and risk-adjusted lending returns.