Transforming raw customer data into strategic business intelligence — this project mirrors the complete workflow of a professional data analyst, from messy raw data to boardroom-ready insights.
This end-to-end portfolio project demonstrates mastery across the full analytics stack: data wrangling in Python, business querying in SQL, and executive dashboards in Power BI — capped with a professional report and stakeholder presentation.
┌─────────────────────────────────────────────────────────────────┐
│ PROJECT PIPELINE │
├──────────────┬──────────────┬──────────────┬────────────────────┤
│ 🐍 PYTHON │ 🗄️ SQL │ 📊 POWER BI │ 📝 REPORTING │
│ │ │ │ │
│ Data Import │ DB Simulate │ Dashboard │ Insight Report │
│ Exploration │ Segments │ KPI Cards │ Presentation │
│ Cleaning │ Loyalty │ Trend Lines │ Recommendations │
│ Modeling │ Purchase │ Filters │ │
│ EDA │ Drivers │ Drill-down │ │
└──────────────┴──────────────┴──────────────┴────────────────────┘
Before you begin, ensure you have the following installed:
Python 3.8+ | MySQL / PostgreSQL / MS SQL Server | Power BI Desktop | Jupyter Notebookgit clone https://github.com/sorol25/SQLPythonPowerBI-customer-trendAnalysis.git
cd SQLPythonPowerBI-customer-trendAnalysisOpen the Jupyter Notebook:
📓 Customer_Shopping_Behavior_Analysis.ipynb
This notebook covers:
- Data Import — Load raw CSV/Excel data
- Data Exploration — Shape, types, null checks, distributions
- Data Cleaning — Handle missing values, outliers, encoding
- SQL Connection — Bridge Python → Database via SQLAlchemy / pyodbc
-- Create your database
CREATE DATABASE customer_behavior_db;
-- Then run the provided query file:
-- 📄 customer_behavior_sql_queries.sqlQueries answer key business questions around:
- 🎯 Customer Segmentation (RFM Analysis)
- 💎 Loyalty Tier Breakdowns
- 🛒 Top Purchase Drivers & Product Categories
- 📅 Seasonal & Temporal Trends
📊 customer_behavior_dashboard.pbix
- Open the
.pbixfile in Power BI Desktop - Update your SQL Server connection string
- Refresh data and explore:
- KPI Summary Cards
- Revenue by Segment Visuals
- Customer Cohort Heatmaps
- Dynamic Slicers & Drill-throughs
- 📝 Write your Project Report — findings, methodology, and strategic recommendations
- 🎨 Build your Presentation Deck using Gamma AI for a polished stakeholder pitch
SQLPythonPowerBI-customer-trendAnalysis/
│
├── 📓 Customer_Shopping_Behavior_Analysis.ipynb # Python EDA & Data Prep
├── 🗄️ customer_behavior_sql_queries.sql # SQL Business Queries
├── 📊 customer_behavior_dashboard.pbix # Power BI Dashboard
├── 📂 data/
│ └── raw_customer_data.csv # Source Dataset
├── 📝 project_report.pdf # Final Report
└── 📖 README.md
| # | Business Question | Tool Used |
|---|---|---|
| 1 | Which customer segments drive the most revenue? | SQL + Power BI |
| 2 | What factors most influence repeat purchases? | Python + SQL |
| 3 | How does customer loyalty correlate with spend? | SQL |
| 4 | What are the peak buying seasons and categories? | SQL + Power BI |
| 5 | Which demographics are most valuable long-term? | Python + Power BI |
MIT License — Copyright (c) 2026 Yeamine Alam Sorol
Permission is hereby granted, free of charge— fork it, star it.
Yeamine Alam Sorol Data Analyst & Web Developer
I break down complex data topics into simple, practical content that actually helps you land a job. I regularly share around SQL, analytics workflows, portfolio projects, and career growth.