Power BI

Power BI Fintech Case Study: Payment Failure Analysis

Power BI Fintech Case Study: Payment Failure Analysis

Table of Contents

Introduction

Payment reliability is one of the most important problems for the digital platform. It is not only important to know the number of failures, but also when and why payments failed. A money transfer service provider company came to us to find a solution for their fragmented data and gateway failures that happened during August 2026.  

We build them the dashboard that connects highlevel KPIs with gateway performance, failure reasons, time periods, payment methods, and transactionlevel detail.

Download our dashboard from the link at the end of this blog.

Our dashboard consists of three analytical solutions:

  1. Payment Reliability Overview.
  2. Payment Failure Root Causes.
  3. Failed Transaction Detail.

These solutions form a workflow: Detect → Diagnose → Investigate.

Business Problem

NovaPay processes payments through multiple gateways (card, wallet, bank transfer). Analysts faced challenges:

  • Fragmented data across systems.
  • Inconsistent gateway failure codes.
  • Difficulty comparing reasons across gateways.
  • Headline failure rates are not tied to specific gateways or times.
  • Retry activity complicating transaction analysis.

The objective was to build a workflow that moves from overall KPIs to individual failed attempts.

Project Objectives

The dashboard enables teams to:

  • Monitor reliability and success/failure rates.
  • Compare gateways and payment methods.
  • Analyze standardized failure reasons.
  • Identify problematic time bands.
  • Investigate retries and recovery.
  • Drill into individual failed attempts.

Data Preparation

Using Power Query, the dataset was cleaned and standardized:

  1. Data typesapplied correctly (IDs, dates, amounts, latency).
  2. Duplicate attemptsremoved (unique AttemptID preserved).
  3. Test transactionsare excluded.
  4. Status standardized(Approved/Paid → Success).
  5. Failure codes are mappedinto common categories (e.g., Timeout).
  6. Date/time transformedinto derived fields (Hour, Time Band).
  7. Retry behavior retained(TransactionID + AttemptNumber + RetryOutcome).

Data Model

A star schema was used:

  • FactPaymentData: attemptlevel grain (AttemptID, TransactionID, GatewayID, PaymentMethodID, IssuerID, FailureReasonID, Status, AmountUSD, Latency, TimeBand, RetryOutcome).
  • Dimensions: Date, Gateway, PaymentMethod, Issuer, FailureReason.

This separation allows efficient filtering and grouping.

DAX Measures

Key measures included:

  • Payment Attempts =
    COUNTROWS( FactPaymentData )
  • Successful Payments =
    CALCULATE ( [Payment Attempts], Status = “Success” 
  • Failed Payments =
    CALCULATE( [Payment Attempts], Status = “Failed” )
  • Success Rate =
    DIVIDE( [Successful Payments], [Payment Attempts] )
  • Failure Rate =
    DIVIDE ( [Failed Payments], [Payment Attempts] )
  • Failed Payment Value =
    CALCULATE (
        SUM ( FactPaymentData[AmountUSD] ),
        FactPaymentData[Status] = “Failed”

Prepare Your Data and Create a Sales Measure

The dashboard is built as an investigation workflow:

Page 1: Payment Reliability Overview

  • KPI cards: Attempts, Success Rate, Failed Payments, Failed Payment Value.
  • Line chart: Failure Rate by Day.
  • Bar chart: Failure Rate by Payment Method.
  • Filters: Date, Market, Payment Method, Gateway.
Payment reliability dashboard
Payment reliability dashboard showing success rates, failed payments, and payment trends.

Page 2: Payment Failure Root Causes

  • Bar chart: Failed Payments by Reason.
  • Bar chart: Failure Rate by Gateway.
Dashboard analyzing payment failures by gateway, reason, value, and time.
Dashboard analyzing payment failures by gateway, reason, value, and time.

Page 3: Failed Transaction Detail

  • Table: AttemptID, Market, Gateway, PaymentMethod, Issuer, FailureReason, AmountUSD, Latency, AttemptNumber, RetryOutcome.
  • Supports Drillthroughfrom Pages 2 for transactionlevel evidence.
Transaction-level dashboard showing failed payments, amounts, gateways, reasons, and retry outcomes.
Transaction-level dashboard showing failed payments, amounts, gateways, reasons, and retry outcomes.

Illustrative Findings

  • 1,230 attempts, 108 failed → 2% success rate.
  • Failed Payment Value = $13,172.56.
  • Gateway comparison:
  • Gateway A: 475 attempts, 36 failed → 7.6% failure rate.
  • Gateway B: 428 attempts, 61 failed → 14.3% failure rate.
  • Gateway C: 327 attempts, 11 failed → 3.4% failure rate.
  • Time band: Gateway B had 9% failure ratebetween 12:00–18:00.
  • Failure reasons:
  • Insufficient funds → 31 failed (28.7%).
  • Timeout → 25 failed (23.1%).

Investigation Workflow

  1. Detect: Overview page shows KPI changes.
  2. Locate: Compare by Gateway, Payment Method, Market, Time.
  3. Diagnose: Root Cause page shows standardized reasons.
  4. Investigate: Drillthrough to individual attempts.
  5. Understand Recovery: Retry analysis shows recovered vs unrecovered.

Security & Privacy

  • Tokenized identifiers are used.
  • Sensitive authentication data excluded.
  • Only fields required for analysis are retained.
  • The PCI Security Standards Council states this restriction explicitly, including when such values are encrypted.

For more information PCI Security Standards Council FAQ on card verification code storage

Business Value

  • Faster issue identification.
  • Gateway-level visibility.
  • Standardized root-cause analysis.
  • Time-based investigation.
  • Retry visibility.
  • Transaction-level evidence.
  • Better operational handoff to teams.

Key Skills Demonstrated

  • Power Query: cleaning, mapping, transformations.
  • Data Modeling: star schema, fact/dimension separation.
  • DAX: KPI calculations, filter context.
  • Visualization: KPI cards, charts, slicers, drillthrough.

Conclusion

In this case study, we converted a disorganized payment information into a processable analytical structure using Power BI. This is achieved through retaining the grain at the attempts level, having a standardized code system, and developing paths for drill-throughs, thereby linking the overall Key Performance Indicators to the gateway/time analysis, root cause, and transactions.

Extended Learning & References

If you’re looking to deepen your Power BI knowledge and build practical, job-ready skills, explore these professional training courses offered by Power BI Training. These courses cover everything from the fundamentals to advanced reporting, DAX, and Microsoft Copilot integration.

Leave a Reply

Your email address will not be published. Required fields are marked *