Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

📊 Integrated E-Commerce Sales & Customer Analysis

This project demonstrates an end-to-end data analysis workflow for an e-commerce platform. It integrates relational database design and querying using SQL with data transformation, modeling, and interactive dashboard design in Microsoft Excel.


🖼️ Dashboard Preview

imagen_dashboard

🎯 Project Objectives

  • Commercial Performance Evaluation: Identify top-performing product categories by revenue.
  • Customer Segmentation: Analyze average order value (AOV) and identify high-value customers (top spenders).
  • Temporal Trends: Visualize monthly revenue progression to support strategic business decision-making.

🛠️ Tech Stack & Tools

  • SQL (DBeaver): Relational database design, table joins (JOIN), aggregations (GROUP BY, SUM, AVG), and conditional filtering (HAVING).
  • Power Query (Excel): Data extraction, UTF-8 encoding configuration, and data type validation from CSV exports.
  • Microsoft Excel: Pivot tables, interactive Slicers, KPI metric cards, and dynamic chart formatting.

🚀 Step-by-Step Implementation

1. Extraction & Processing in SQL

  • Designed clientes (customers) and ventas (sales) tables with primary and foreign key constraints.
  • Executed a consolidated query calculating total transaction revenue:
SELECT 
    v.venta_id,
    v.fecha_venta,
    c.cliente_id,
    CONCAT(c.nombre, ' ', c.apellido) AS cliente,
    c.pais,
    v.categoria,
    v.producto,
    v.cantidad,
    v.precio_unitario,
    (v.cantidad * v.precio_unitario) AS total_venta
FROM ventas v
INNER JOIN clientes c ON v.cliente_id = c.cliente_id;

2. Transformation & Modeling in Excel

  • Imported the SQL output via Power Query, ensuring proper data type mapping (dates, currency, integers).

  • Built 3 distinct Pivot Tables to compute:

    • Revenue by Product Category.

    • Monthly Sales Trend.

    • Top 3 Customers by Total Spend.

3. Visualization & Interactive Dashboard

  • Designed a clean, single-page executive view with linked KPI cards.

  • Implemented interactive Slicers for Country (pais) and Category (categoria), linked across all visual components.

📈 Key Insights

  • Top Category: Electronics generates the highest revenue volume, exceeding $200,000.
  • Top Spender: Carlos Gómez is the highest-value customer with cumulative purchases of $155,000.
  • Average Ticket: $23,583.33 across 12 total evaluated transactions.

📂 Project Structure

ecommerce-sales-analysis/
│
├── data/
│   ├── raw_data.sql                   # Database setup & sample data inserts
│   └── reporte_ventas_consolidado.csv # Exported SQL query results
│
├── sql/
│   └── consultas_analisis.sql         # Business intelligence queries
│
├── dashboard/
│   └── Dashboard_Ventas_Ecommerce.xlsx # Final Excel workbook with dashboard
│
├── img/
│   └── dashboard_preview.png          # Dashboard screenshot

🔧 How to Replicate

1. Clone this repository:

git clone [https://github.com/your-username/ecommerce-sales-analysis.git](https://github.com/your-username/ecommerce-sales-analysis.git)

2. Execute

  • data/raw_data.sql in your SQL client (e.g., DBeaver, MySQL, PostgreSQL).

3. Open

  • dashboard/Dashboard_Ventas_Ecommerce.xlsx to explore the interactive dashboard.

About

This project demonstrates an end-to-end data analysis workflow for an e-commerce platform.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors