Skip to content

Hammad0010/Ecommerce-analytics-platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“Š Ecommerce Analytics Platform

An end-to-end data analytics project demonstrating ETL pipeline design, data warehousing, and business intelligence using PostgreSQL and Power BI.


πŸš€ Project Overview

This project processes raw ecommerce datasets, transforms them into a structured analytical model, and delivers actionable business insights through an interactive Power BI dashboard.

It simulates a real-world data workflow β€” from raw data ingestion to business decision-making.


🧱 Tech Stack

  • Python (Pandas, SQLAlchemy)
  • PostgreSQL (Data Warehouse)
  • SQL (Transformations)
  • Power BI (Visualization & Insights)

πŸ”„ ETL Pipeline

1. Extract

  • Raw datasets loaded from CSV files:
    • Customers
    • Orders
    • Payments
    • Products
    • Order Items

2. Transform

  • Data cleaning & preprocessing:
    • Handling missing values
    • Data type corrections
    • Removing inconsistencies
  • Business logic applied:
    • Revenue calculation
    • Order aggregation
    • Customer mapping

3. Load

  • Data loaded into PostgreSQL:
    • Staging Tables (stg_*)
    • Warehouse Tables

πŸ—οΈ Data Model (Star Schema)

Fact Table:

  • fact_sales

Dimension Tables:

  • dim_customers
  • dim_products
  • dim_date

This structure enables efficient analytical queries and scalable reporting.


πŸ“Š Key Metrics

  • Total Revenue
  • Total Orders
  • Average Order Value (AOV)
  • Shipping Revenue

πŸ“Έ Dashboard Visualizations & Insights


πŸ“ˆ Total Revenue

Total Revenue

  • Revenue shows a strong upward trend, indicating consistent business growth.
  • A peak suggests a possible seasonal or promotional impact.
  • A post-peak drop may indicate demand normalization or data irregularities.

πŸ“¦ Total Orders

Total Orders

  • Orders increase significantly over time, reflecting strong customer acquisition.
  • Growth aligns with revenue, confirming volume-driven expansion.
  • Indicates increasing platform usage and transaction frequency.

πŸ“Š Orders Trend Over Time

Orders Trend

  • Rapid growth observed during early business phase (2016–2017).
  • Sharp spike likely due to high-demand events or campaigns.
  • Stabilization indicates transition to a mature business stage.

πŸ’° Average Order Value (AOV)

AOV Trend

  • AOV remains stable (~150–180), showing consistent pricing strategy.
  • A sharp drop in early 2017 indicates a potential data anomaly.
  • Stability confirms revenue growth is not driven by increased spending per order.

πŸ›οΈ Revenue by Product Category

Revenue by Category

  • A few product categories dominate overall revenue.
  • Indicates dependency on high-performing categories.
  • Lower-performing categories present optimization opportunities.

πŸ“ˆ Overall Insights

  • πŸ“ˆ Revenue growth is primarily driven by increase in order volume
  • βž– AOV remains stable β†’ consistent pricing strategy
  • πŸ“¦ Seasonal spikes suggest event-driven demand
  • πŸ›οΈ Revenue concentration highlights key product categories
  • ⚠️ Data anomaly detected in AOV β†’ potential data quality issue

🧠 Business Conclusion

The business is scaling through customer acquisition and transaction growth, rather than increasing customer spend.

🎯 Strategic Opportunities:

  • Increase AOV via bundling and upselling
  • Expand high-performing product categories
  • Improve data validation processes

▢️ How to Run

pip install -r requirements.txt
python scripts/load.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages