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.
- 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.
- 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.
- Designed
clientes(customers) andventas(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;-
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.
-
-
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.
- 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.
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
git clone [https://github.com/your-username/ecommerce-sales-analysis.git](https://github.com/your-username/ecommerce-sales-analysis.git)- data/raw_data.sql in your SQL client (e.g., DBeaver, MySQL, PostgreSQL).
- dashboard/Dashboard_Ventas_Ecommerce.xlsx to explore the interactive dashboard.