BANKING DATA QUALITY · CONTROLS · SYNTHETIC DATASET

Banking Data Quality & Portfolio Performance

An end-to-end banking data quality and controls case study using a synthetic dataset. MySQL, Excel and Power Query were used to profile and validate source data, resolve duplicates and integrity breaks, reconcile every cleaning decision and publish controlled portfolio and credit reporting.

MySQL Excel Data Profiling Data Quality Rules Reconciliation
Modern banking building representing the Banking Data Quality and Portfolio Performance case study
“

Reliable decisions start with data that has been tested, reconciled and owned.

QUALITY · CONTROL · TRUST

Turning fragmented banking data into trusted, controlled information

The project was designed around a practical management problem. How to produce a reliable view of banking activity when source data contains duplicates, missing dates, multiple entity types and different reporting grains.

1,100

Customers

Clean customer population after removing verified duplicate customer records.

1,651

Accounts

Clean account base used for portfolio and balance analysis.

£81.04M

Account Balance

Total balance calculated at account grain to avoid duplication through transaction joins.

£117.13M

Transaction Value

Comparable transaction value across the selected 2020–2023 reporting period.

£17.09M

Loan Portfolio

Total principal value across the clean loan population.

£1.67M

Overdue Exposure

Overdue loan principal representing approximately 9.8% of total loan value.

A management view across customers, accounts, transactions and credit

The source data represented multiple parts of a banking operating environment, including customers, accounts, transactions, loans, branches and supporting reference tables.

The analytical challenge was not simply to calculate totals. Management needed a controlled view that could answer operational and portfolio questions without overstating balances, mixing incomplete periods or confusing overdue exposure with default.

KEY BUSINESS QUESTIONS
  1. What is the size and composition of the customer and account portfolio?
  2. How has transaction value changed over the comparable reporting period?
  3. Which transaction types contribute most to banking activity?
  4. What is the value and status mix of the loan portfolio?
  5. Where is overdue exposure concentrated?
  6. Is branch transaction activity concentrated in a small number of locations?
  7. Can the reporting logic be made reusable and controlled for management reporting?

Understanding the source structure before analysis

The source consisted of transactional and reference tables rather than one flat analytical file. This meant that entity relationships and reporting grain had to be understood before calculating management measures.

Core Entities

Customers, accounts, loans and transactions formed the primary analytical population.

Reference Data

Customer type, account type, account status, loan status, transaction type and branch tables were used to interpret coded identifiers.

Different Grains

Customer, account, loan and transaction tables exist at different levels of detail, creating a risk of double counting if joins are not controlled.

Reporting Period

2020–2023 was selected as the comparable period because later years were materially incomplete and would distort trend interpretation.

Testing the data before trusting the numbers

Data-quality checks were performed before management measures were produced. The objective was to quantify defects, reconcile the clean population and reduce the risk of invalid management totals.

Dataset Raw Clean Control Finding
Transactions 50,000 48,500

500 duplicate transaction IDs and 1,000 records with missing or unusable transaction dates.

Customers 1,111 1,100

11 verified duplicate customer records removed.

Accounts 1,667 1,651

16 duplicate account records removed and balances standardised as numeric.

Loans 333 330

3 duplicate loan records removed and principal amounts prepared for analysis.

CONTROL 01

Referential Integrity

Customer, account, loan and transaction relationships were tested for orphan records. No orphan relationships were identified in the tested keys.

CONTROL 02

Reporting Grain

Account balances were calculated directly from the account table rather than after joining to transaction-level records.

This prevented one-to-many transaction joins from multiplying balances and overstating the portfolio.

CONTROL 03

Comparable Period

2020–2023 was retained for trend reporting because 2024 onward contained materially fewer observations and was unsuitable for like-for-like comparison.

QUALITY EVIDENCE

Reconciliation checks quantified the impact of cleaning decisions

The SQL reconciliation output provided an auditable bridge between raw and clean populations, showing exactly how many records were removed and why.

Why this matters

Management KPIs are only useful if the underlying population is controlled. Performing these checks before aggregation reduced the risk of hidden data-quality errors inside reported totals.

MySQL data quality reconciliation showing raw and clean record counts
Raw-to-clean reconciliation across transactions, customers, accounts and loans.

Separating analytical logic from presentation

MySQL was used as the control layer between source data and Excel reporting. Clean analytical tables and reusable reporting views were created so the same management logic could be consumed consistently rather than rebuilt manually in spreadsheets.

01

Ingest

Load source tables while preserving the raw layer.

02

Profile

Assess duplicates, nulls, coverage and row counts.

03

Validate

Check entity relationships and reporting grain.

04

Clean

Create validated analytical tables.

05

Aggregate

Calculate measures at the correct grain.

06

Publish

Create reusable reporting views for Excel.

EXECUTIVE PORTFOLIO

vw_executive_portfolio

Consolidated customers, accounts, account balance, comparable transaction activity, total loan value and overdue exposure into one management output.

CUSTOMER PORTFOLIO

vw_customer_portfolio

Combined customer type with account product, account status, balance and opening date while preserving customers without an associated account.

MANAGEMENT ANALYSIS

Operational & Credit Views

Reusable outputs were created for transaction trend, transaction type, branch activity, loan status and overdue exposure by customer segment.

MySQL executive portfolio reporting view and result set
Executive reporting view consolidating management KPIs from validated analytical tables.
REPORTING VIEW

Core KPIs were calculated upstream rather than independently in Excel

This reduced manual calculation risk and created a reusable source for downstream management reporting.

1,100 Customers
1,651 Accounts
£81.04M Balance
£117.13M Transaction Value
Analytical control

The SQL layer separated source records, cleaning logic, aggregation and presentation, making the reporting process more traceable and reusable.

How is the portfolio structured?

Portfolio analysis focused on the distribution of account balances across customer segments and account products, supported by account-status analysis.

01

Large Enterprise holds the highest total account balance

Large Enterprise customers held approximately £28.61M in account balances, ahead of Small Business at £26.52M and Individual customers at £25.91M.

The balance distribution is relatively broad, but the Large Enterprise segment represents the largest single concentration of account value.

02

Product balances are relatively evenly spread

Business, Savings, Youth, Payroll and Checking accounts each contribute materially to the balance base, with no single product dominating the portfolio.

This reduces dependence on one account product, although segment-level performance should still be monitored alongside product mix.

03

Customers without accounts were deliberately retained

The customer portfolio view used a left join so that customers without linked accounts remained visible rather than being silently excluded.

In Power Query, missing account categories were labelled as No Account to make this population interpretable in the final report.

Is banking activity stable, growing or declining?

Transaction analysis was restricted to the comparable 2020–2023 period to avoid interpreting incomplete later years as genuine operational decline.

2020 £29.57M

Comparable transaction value.

2021 £29.34M

Broadly stable versus the prior year.

2022 £29.38M

Transaction value remained stable.

2023 £28.84M

1.8% decline versus 2022.

Transaction value remained broadly stable

Annual transaction value remained within a relatively narrow range of approximately £28.8M–£29.6M from 2020 to 2023.

The 2023 decline of 1.8% is modest and should be monitored, but the data does not support a claim of structural deterioration.

Deposits, transfers and withdrawals contribute similar levels of value

Deposit value was £37.65M, Transfer £37.18M and Withdrawal £36.74M across the comparable period.

Payments were materially lower at £12.38M, indicating a different contribution profile within the transaction mix.

Where is overdue exposure concentrated?

Credit analysis focused on portfolio status and overdue principal exposure. Overdue was treated as a reporting status and was not interpreted as default.

ACTIVE £12.41M

239 active loans representing approximately 73% of total loan value.

PAID OFF £3.00M

57 paid-off loans representing approximately 17% of portfolio value.

OVERDUE £1.67M

34 overdue loans representing approximately 9.8% of total loan value.

Large Enterprise holds the highest overdue exposure

Large Enterprise customers represented approximately £623K of overdue principal, compared with £532K for Small Business and £515K for Individuals.

Small Business carries the highest average overdue loan

Although Large Enterprise has the highest total overdue exposure, Small Business has the highest average overdue loan value at approximately £59K.

This distinction matters because total exposure and average case severity answer different risk questions.

Is transaction activity concentrated in a small number of branches?

Branch analysis compared transaction value across the highest-performing branches to assess whether the activity profile was heavily concentrated.

Top branch performance is relatively tightly distributed

The top 10 branches each generated approximately £2.6M–£2.7M in transaction value.

The narrow spread indicates that no single branch dominates transaction activity among the leading performers.

Translating controlled SQL outputs into management friendly reporting fields

Power Query was used as the preparation layer between SQL and the final Excel report, including business-facing labels required for interpretation.

Power Query transformation creating Account Type Display and No Account category
Power Query transformation used to label missing account categories as “No Account”.
REPORTING LOGIC

Preserving customers without linked accounts

Customers without account records were retained in the analytical population through a left join. Instead of leaving the resulting account type as a null value, Power Query converted it to the management-readable category No Account.

Why this matters

Replacing null with a meaningful reporting label prevents users from interpreting missing values as data errors and makes the retained customer population explicit in the final report.

Translating analysis into decision-ready management views

The final Excel report was structured into one executive page and two supporting analytical views so management could move from headline portfolio performance into customer, operational and credit detail.

PAGE 01 · EXECUTIVE VIEW

Banking Operations & Portfolio Performance

The executive page consolidates the core portfolio position across customers, accounts, transaction value, loan exposure and overdue value, supported by annual transaction trend and loan-status mix.

Banking Operations and Portfolio Performance executive management information report
Customer and Account Portfolio report page
PAGE 02 · PORTFOLIO ANALYSIS

Customer & Account Portfolio

Provides deeper analysis of account balances by customer segment and product type, supported by account status and interactive filtering.

Operations and Credit Performance report page
PAGE 03 · OPERATIONS & CREDIT

Operations & Credit Performance

Combines transaction mix, branch activity, loan status and overdue exposure into one operational and credit-monitoring view.

REPORTING PRINCIPLE

Excel was the presentation layer, not the control layer

Power Query PivotTables PivotCharts Slicers KPI Cards Management Commentary

What the analysis revealed

The report moves beyond headline totals to identify changes, concentrations and exceptions requiring management attention.

01

Transaction momentum weakened

Transaction value remained broadly stable between 2020 and 2022 but declined by 1.8% in 2023 to approximately £28.8 million.

Business implication

Management should investigate the branches, customer segments and transaction types responsible for the reduction before it develops into a sustained trend.

02

Overdue exposure is material

Overdue lending totalled approximately £1.67 million, representing 9.8% of the £17.09 million loan portfolio.

Business implication

Credit monitoring and recovery activity should be treated as a management priority rather than a routine reporting exception.

03

Risk is concentrated in Large Enterprise

Large Enterprise customers held the highest total overdue exposure at approximately £632,000.

Business implication

A relatively concentrated exposure means that deterioration in a small number of large accounts could materially affect overall portfolio quality.

04

Small Business carries higher account-level risk

Small Business customers recorded the highest average overdue loan value at approximately £59,000.

Business implication

Total exposure alone would understate the significance of individual Small Business facilities, making account-level review necessary.

Turning the findings into management priorities

  1. Analyse the 2023 transaction decline by branch, customer segment and transaction type to isolate the underlying drivers.
  2. Prioritise Large Enterprise accounts for exposure monitoring, repayment engagement and recovery planning.
  3. Review individual Small Business facilities because of their comparatively high average overdue value.
  4. Monitor active, paid-off and overdue lending through a recurring management-control report with defined escalation thresholds.

What the project delivered

Trusted Reporting Base

Raw and clean populations were reconciled before management measures were produced.

Reusable Analytical Logic

Core management calculations were centralised in SQL views rather than rebuilt separately in Excel.

Controlled KPI Grain

Account balance, transaction and loan measures were calculated at the appropriate analytical grain.

Improved Risk Visibility

Overdue exposure was analysed by both total value and average loan severity.

Comparable Trend Reporting

2020–2023 was isolated as the valid like-for-like period rather than mixing incomplete later years.

Decision-Ready MI

The final Excel report translated technical analysis into executive, portfolio and operational views.

Interpreting the findings responsibly

The project uses a synthetic banking dataset and the findings therefore demonstrate analytical methodology rather than real-bank performance.

Overdue loan status is reported as overdue exposure and is not treated as default.

The analysis identifies patterns and concentrations but does not establish causality.

2024 onward was excluded from comparable trend analysis because the available observations were materially incomplete.

PROJECT TAKEAWAY

Reliable management information starts before the dashboard

The strongest outcome from this project was not simply the final Excel report. It was the creation of a controlled analytical process in which source quality, reporting grain, reusable SQL logic and presentation were deliberately separated. That made the final management information easier to trust, interpret and reuse.