Skip to content

shivareddy2002/Credit_Card_Transaction_Report

Repository files navigation

๐Ÿ“Œ Project Overview

In todayโ€™s data-driven financial environment, organizations require real-time visibility into transaction patterns, customer demographics, and revenue trends to support informed decision-making.

This project focuses on building an interactive Credit Card Transaction Dashboard that:

  • Stores structured data in a SQL database
  • Models and transforms data in Power BI
  • Uses DAX measures for KPIs and time intelligence
  • Provides weekly, quarterly, and YTD insights

The dashboard enables stakeholders to monitor performance, identify trends, and evaluate risk efficiently.


๐Ÿ–ผ๏ธ Dashboard Screenshots

๐Ÿ“Š Credit Card Transaction Dashboard

Credit Card Transaction Dashboard


๐Ÿ‘ฅ Customer Transaction Analysis Dashboard

Customer Transaction Analysis Dashboard

๐ŸŽฏ Project Objectives

  • Build an interactive Power BI dashboard for credit card analytics
  • Provide insights into:
    • Revenue & interest earned
    • Transaction amount & transaction count
    • Customer demographics & behavior
    • Card category & usage patterns
  • Enable Weekly, Quarterly, and YTD performance tracking
  • Support data-driven business decisions

๐Ÿ—๏ธ Project Architecture & Workflow

End-to-End Workflow

  1. CSV data preparation
  2. SQL database creation
  3. Table design & schema definition
  4. Data loading using LOAD DATA INFILE
  5. Data validation & corrections
  6. Power BI data modeling
  7. DAX calculations & KPI creation
  8. Interactive dashboard development
  9. Insight extraction & reporting
flowchart LR
    A[CSV Data Collection] --> B[SQL Database Creation]
    B --> C[Table Design: cc_details & cust_details]
    C --> D[Load Data using LOAD DATA INFILE]
    D --> E[Data Validation & Cleaning in SQL]
    E --> F[Connect SQL Database to Power BI]
    F --> G[Data Modeling & Relationships]
    G --> H[DAX Measures & Calculations]
    H --> I[Interactive Dashboard Design]
    I --> J[Insights, Export & Sharing]

    %% Styles
    style A fill:#FFD54F,stroke:#F57F17,stroke-width:2px,color:#000;
    style B fill:#4FC3F7,stroke:#0277BD,stroke-width:2px,color:#fff;
    style C fill:#AED581,stroke:#33691E,stroke-width:2px,color:#000;
    style D fill:#FFCC80,stroke:#EF6C00,stroke-width:2px,color:#000;
    style E fill:#81D4FA,stroke:#01579B,stroke-width:2px,color:#000;
    style F fill:#BA68C8,stroke:#4A148C,stroke-width:2px,color:#fff;
    style G fill:#90CAF9,stroke:#0D47A1,stroke-width:2px,color:#000;
    style H fill:#CE93D8,stroke:#6A1B9A,stroke-width:2px,color:#000;
    style I fill:#FF8A65,stroke:#BF360C,stroke-width:2px,color:#fff;
    style J fill:#B39DDB,stroke:#311B92,stroke-width:2px,color:#fff;
Loading

๐Ÿ—‚๏ธ Data Source

  • Data stored and managed in a SQL Database
  • Imported from CSV files into SQL tables
  • Two primary tables:
    • cc_details โ€“ Credit card transaction data
    • cust_details โ€“ Customer demographic data

๐Ÿ› ๏ธ Tech Stack & Tools Used

  • Power BI โ€“ Dashboard development & visualization
  • SQL (MySQL / PostgreSQL) โ€“ Data storage & querying
  • DAX โ€“ Measures, KPIs & time intelligence
  • Data Modeling โ€“ Relationships & schema design
  • Data Visualization โ€“ KPIs, charts, slicers
  • CSV Files โ€“ Raw data source

๐Ÿงฑ Database Schema

๐Ÿ—„๏ธ Database Creation (SQL)

CREATE DATABASE ccdb;
USE ccdb;

1๏ธโƒฃ Credit Card Details Table (cc_details)

CREATE TABLE cc_details (
    Client_Num INT,
    Card_Category VARCHAR(20),
    Annual_Fees INT,
    Activation_30_Days INT,
    Customer_Acq_Cost INT,
    Week_Start_Date DATE,
    Week_Num VARCHAR(20),
    Qtr VARCHAR(10),
    current_year INT,
    Credit_Limit DECIMAL(10,2),
    Total_Revolving_Bal INT,
    Total_Trans_Amt INT,
    Total_Trans_Ct INT,
    Avg_Utilization_Ratio DECIMAL(10,3),
    Use_Chip VARCHAR(10),
    Exp_Type VARCHAR(30),
    Interest_Earner DECIMAL(10,3),
    Delinquent_Acc VARCHAR(5)
);

๐Ÿ”น Customer Details Table (cust_details)

CREATE TABLE cust_details (
    Client_Num INT,
    Customer_Age INT,
    Gender VARCHAR(10),
    Dependent_Count INT,
    Education_Level VARCHAR(50),
    Maritial_Status VARCHAR(20),
    State_cd VARCHAR(50),
    Zipcode VARCHAR(20),
    car_Owner VARCHAR(10),
    House_Owner VARCHAR(5),
    Personal_Loan VARCHAR(5),
    Contact VARCHAR(20),
    Customer_Job VARCHAR(20),
    Income INT,
    Customer_Satisfaction_Score INT
);

๐Ÿ”„ Data Loading Process

๐Ÿ”น Load Credit Card Transaction Data

LOAD DATA INFILE 'C:/ProgramData/MySQL/MySQL Server 8.0/Uploads/credit_card.csv'
INTO TABLE cc_details
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 ROWS;

๐Ÿ”น Load Customer Details Data

The following SQL command is used to import customer demographic data from a CSV file into the cust_details table.

LOAD DATA INFILE 'C:/ProgramData/MySQL/MySQL Server 8.0/Uploads/customer.csv'
INTO TABLE cust_details
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 ROWS;

๐Ÿ“Š Dashboard Features

๐Ÿ”น Key KPIs

  • ๐Ÿ’ฐ Total Revenue
  • ๐Ÿ’ณ Total Transaction Amount
  • ๐Ÿ”ข Transaction Count
  • ๐Ÿ’ธ Interest Earned
  • ๐Ÿ‘ฅ Customer Count
  • โš ๏ธ Delinquency Rate
  • โœ… Activation Rate

๐Ÿ“ˆ Key Insights

  • ๐Ÿ’ฐ Total Revenue: 55M
  • ๐Ÿ’ณ Blue & Silver cards contribute ~93% of total transactions
  • ๐Ÿ”„ Swipe transactions dominate overall usage
  • ๐Ÿ‘ฅ Significant variation across age, income, and job groups
  • ๐ŸŒŽ TX, NY & CA together contribute ~68% of total revenue
  • โš ๏ธ Delinquent Rate: 6.06%
  • โœ… Activation Rate: 57.5%

๐Ÿ“ค Export & Sharing

Dashboard outputs were shared as:

  • PDF reports
  • Power BI Service dashboards

Used for:

  • Weekly performance reviews
  • Business & strategic discussions

โœจ ๐——๐—ฎ๐˜€๐—ต๐—ฏ๐—ผ๐—ฎ๐—ฟ๐—ฑ & ๐—ฃ๐—ฟ๐—ผ๐—ท๐—ฒ๐—ฐ๐˜ ๐—™๐—ถ๐—น๐—ฒ๐˜€ (๐—š๐—ผ๐—ผ๐—ด๐—น๐—ฒ ๐——๐—ฟ๐—ถ๐˜ƒ๐—ฒ)

๐Ÿ”— https://drive.google.com/drive/folders/16T65EOoXPGIZTcLpNTc-AbGHeKpTW9zG?usp=sharing

โœจ GitHub Repository

๐Ÿ”— https://github.com/shivareddy2002/Credit_Card_Transaction_Report


๐Ÿš€ Future Enhancements

  • Predictive analytics for:
    • Revenue forecasting
    • Delinquency prediction
  • Automated data refresh using Power BI Service
  • Drill-through customer-level analysis
  • Integration with Machine Learning models

๐Ÿ‘จโ€๐Ÿ’ป Author

Lomada Siva Gangi Reddy

  • ๐ŸŽ“ B.Tech CSE (Data Science), RGMCET (2021โ€“2025)
  • ๐Ÿ’ก Interests: Python | Machine Learning | Deep Learning | Data Science
  • ๐Ÿ“ Open to Internships & Job Offers

Contact Me:


About

Credit Card Transaction Analytics project using SQL and Power BI, featuring interactive dashboards, KPIs, and business insights on revenue, customers, and card usage.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors