Skip to content

Latest commit

Β 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“Š Enterprise E-Commerce Analytics

PostgreSQL SQL Power BI ETL License

An end-to-end Enterprise E-Commerce Analytics project built using PostgreSQL, SQL, ETL pipelines, and Power BI on the Brazilian Olist E-Commerce dataset.

The project demonstrates the complete data analytics lifecycleβ€”from raw CSV files to database design, ETL, SQL analytics, business reporting, and interactive dashboards.


πŸ“Œ Project Overview

This project simulates a real-world enterprise analytics solution for an e-commerce company.

The raw Olist Brazilian E-Commerce dataset is imported into PostgreSQL using an ETL pipeline, cleaned, transformed, and optimized for analytical reporting.

Business-focused SQL queries, analytical views, KPIs, and Power BI dashboards provide insights into sales, customers, sellers, payments, delivery performance, and product trends.

The project follows an end-to-end analytics workflow similar to what is implemented in modern Business Intelligence teams.


πŸ›  Tech Stack

  • PostgreSQL
  • SQL
  • Power BI
  • ETL Pipeline
  • CSV Files
  • Git & GitHub

✨ Features

  • Enterprise PostgreSQL Database Design
  • Complete ETL Pipeline
  • Data Cleaning & Validation
  • SQL Analytics
  • Business KPI Analysis
  • Window Functions
  • Common Table Expressions (CTEs)
  • Analytical Views
  • Query Optimization
  • Interactive Power BI Dashboards
  • Architecture Documentation
  • Database Schema
  • ETL Workflow Documentation

πŸ— Enterprise Architecture

The project follows a complete enterprise analytics workflow from raw data ingestion to business intelligence reporting.


πŸ—„ Database Schema

The PostgreSQL database is designed using a relational schema with normalized tables connected through primary and foreign keys.


πŸ”„ ETL Workflow

The ETL process extracts raw CSV files, validates and cleans the data, transforms it into structured tables, and creates analytical views for reporting.


πŸ“Š Power BI Dashboards

Executive Dashboard


Customer Analytics


Operations Dashboard


πŸ“‚ Project Structure

Enterprise-Ecommerce-Analytics/
β”‚
β”œβ”€β”€ analysis/              # SQL analysis queries
β”œβ”€β”€ cleaning/              # Data cleaning scripts
β”œβ”€β”€ dashboards/            # Power BI dashboard (.pbix)
β”œβ”€β”€ data/
β”‚   └── raw/               # Raw Olist CSV datasets
β”œβ”€β”€ database/              # Database creation scripts
β”œβ”€β”€ diagrams/              # Architecture, Schema & ETL diagrams
β”œβ”€β”€ documentation/         # Project documentation
β”œβ”€β”€ etl/                   # ETL loading scripts
β”œβ”€β”€ optimization/          # Query optimization
β”œβ”€β”€ screenshots/           # SQL & Dashboard screenshots
β”œβ”€β”€ views/                 # Analytical SQL views
β”‚
β”œβ”€β”€ README.md
└── LICENSE

πŸ“¦ Dataset

Dataset: Brazilian Olist E-Commerce Dataset

The dataset contains information about:

  • Customers
  • Orders
  • Order Items
  • Products
  • Sellers
  • Payments
  • Reviews
  • Geolocation
  • Category Translation

It contains nearly 100,000 orders placed across Brazil and is widely used for SQL and Business Intelligence projects.


🧠 SQL Concepts Used

This project demonstrates a wide range of SQL concepts including:

  • SELECT Statements
  • Filtering & Sorting
  • GROUP BY
  • HAVING
  • Aggregate Functions
  • CASE Statements
  • Joins
  • Subqueries
  • Common Table Expressions (CTEs)
  • Window Functions
  • Ranking Functions
  • Views
  • Indexing
  • Constraints
  • Data Cleaning
  • Query Optimization

πŸ“ˆ Business Questions Solved

This project answers important business questions such as:

  • What is the total revenue?
  • Which months generate the highest revenue?
  • Which products contribute the most revenue?
  • Who are the top-performing sellers?
  • Which states generate the highest sales?
  • Which cities have the most customers?
  • What is the average order value?
  • Which payment methods are most popular?
  • How efficient is the delivery process?
  • Which customers spend the most?
  • Which products underperform?
  • How do revenue trends change over time?

πŸ“Š Dashboard Pages

Executive Dashboard

  • Revenue KPIs
  • Monthly Revenue Trend
  • Product Categories
  • Top Sellers

Customer Analytics

  • Revenue by State
  • Revenue by City
  • Top Customers
  • Average Order Value

Operations Dashboard

  • Payment Analysis
  • Delivery Performance
  • Review Distribution
  • Operational KPIs

πŸ“Œ Key KPIs

  • Total Revenue
  • Total Orders
  • Total Customers
  • Average Review Score
  • Average Delivery Time
  • Revenue by Category
  • Revenue by State
  • Revenue by Seller
  • Payment Distribution
  • Customer Spending

πŸš€ Installation & Setup

Clone the Repository

git clone https://github.com/rudrasave/Enterprise-Ecommerce-Analytics.git

Open the Project

cd Enterprise-Ecommerce-Analytics

Database Setup

  1. Install PostgreSQL.
  2. Execute the scripts in the following order:
  • create_database.sql
  • create_tables.sql
  • constraints.sql
  • indexes.sql

Load Data

Run the SQL scripts inside the etl/ folder to import the CSV files.

Perform Analysis

Execute the SQL scripts inside the analysis/ folder.

Power BI Dashboard

Open the following file in Power BI Desktop:

dashboards/Enterprise_Ecommerce_Analytics_Final.pbix

πŸš€ Future Improvements

  • Deploy dashboards to Power BI Service
  • Automate ETL using Apache Airflow
  • Integrate live data sources
  • Build real-time dashboards
  • Add customer segmentation using Machine Learning
  • Create forecasting models for sales prediction
  • Optimize SQL queries for large-scale datasets

πŸ‘¨β€πŸ’» Author

Rudra Save

Electronics & Telecommunication Engineering Student

Aspiring Data Analyst | SQL | PostgreSQL | Power BI | Python

πŸ“§ Email: your-email@example.com

πŸ’Ό LinkedIn: https://www.linkedin.com/in/YOUR-LINKEDIN/

πŸ™ GitHub: https://github.com/rudrasave


πŸ“„ License

This project is licensed under the MIT License.

Feel free to use this project for learning and portfolio purposes.

About

Enterprise E-Commerce Analytics | End-to-End SQL, PostgreSQL, ETL & Power BI Project using the Brazilian Olist Dataset

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors