diff --git a/README.md b/README.md index 74aa20b..c14c21c 100644 --- a/README.md +++ b/README.md @@ -1,49 +1,36 @@ -#
DHL – Power BI Logistics Analytics Dashboard
+#
DHL – Logistics Analytics Data Warehouse
--- ##
Overview
-This project consists of a complete Power BI Business Intelligence solution focused on logistics, sales analysis, shipment monitoring and customer analytics for DHL operations. :contentReference[oaicite:0]{index=0} +This project consists of the development of a dimensional Data Warehouse model for logistics and sales analytics using a Star Schema architecture. -The solution integrates: +The solution was designed to support Business Intelligence operations related to: -- Power BI dashboards -- Data Warehouse modeling -- Star schema architecture -- Interactive analytics -- KPI visualization -- Customer and logistics insights -- Shipment return analysis +- Sales analysis +- Shipment analytics +- Customer analysis +- Product return monitoring +- Profitability analysis +- Regional performance evaluation -The project was developed as an analytical platform capable of answering strategic business questions through interactive dashboards and dimensional modeling. +The project integrates fact tables, dimension tables and analytical relationships optimized for Power BI reporting and KPI analysis. --- -#
Project Components
- -| File | Description | -|:---:|:---:| -| `PBI.pbix` | Main Power BI dashboard | -| `PBI.pdf` | Exported dashboard report | -| `DataWarehouse.xlsx` | Data warehouse source data | -| `Diagrama de Estrela.jpg` | Star schema model | -| `README.md` | Project documentation | - ---- - -#
Data Warehouse Architecture
+#
Architecture
## Star Schema Model -The project uses a dimensional data warehouse model with: +The data warehouse follows a classic Star Schema architecture composed of: ### Fact Tables | Table | Description | |:---:|:---:| -| FactSales | Sales transactions | -| FactReturns | Product return transactions | +| FactSales | Stores sales transaction metrics | +| FactReturns | Stores product return information | --- @@ -52,28 +39,159 @@ The project uses a dimensional data warehouse model with: | Table | Description | |:---:|:---:| | DimCustomer | Customer information | -| DimProduct | Product hierarchy | -| DimDate | Date dimension | -| DimRegion | Geographic regions | -| DimShipMode | Shipping methods | +| DimProduct | Product hierarchy and categories | +| DimDate | Temporal analysis dimension | +| DimRegion | Geographic information | +| DimShipMode | Shipment methods | --- -#
Entity Relationship Model
+#
Entity Relationship Structure
-The analytical model connects: +The schema connects transactional data with descriptive dimensions through foreign-key relationships optimized for analytical queries. -- Customers -- Products -- Sales -- Returns -- Shipping modes -- Geographic regions -- Time dimensions +The model supports: -through foreign-key relationships optimized for Power BI analytics. +- Temporal analysis +- Geographic analysis +- Product analytics +- Customer segmentation +- Shipment analysis +- Return tracking -The architecture follows a classic star schema approach to maximize reporting performance and simplify analytical queries. +--- + +#
Fact Tables
+ +## FactSales + +Main transactional sales table. + +### Attributes + +| Attribute | Type | +|:---:|:---:| +| RowID | INT | +| Sales | DECIMAL(10,2) | +| Quantity | INT | +| Discount | DECIMAL(3,2) | +| Order Priority | VARCHAR(20) | +| OrderID | VARCHAR(50) | +| Profit | DECIMAL(10,2) | +| Shipping Cost | DECIMAL(10,2) | + +### Foreign Keys + +| Foreign Key | References | +|:---:|:---:| +| ShipOrder | DimShipMode | +| CodigoPostal | DimRegion | +| DateKey_Ship | DimDate | +| DateKey_Order | DimDate | +| CustomerID | DimCustomer | +| ProductID | DimProduct | + +--- + +## FactReturns + +Stores returned product transactions. + +### Attributes + +| Attribute | Type | +|:---:|:---:| +| ReturnID | INT | +| ReturnQuantity | INT | +| ReturnAmount | DECIMAL(10,2) | +| OrderID | VARCHAR(50) | +| Reason | VARCHAR(50) | + +### Foreign Keys + +| Foreign Key | References | +|:---:|:---:| +| CodigoPostal | DimRegion | +| DateKey_Order | DimDate | +| CustomerID | DimCustomer | + +--- + +#
Dimension Tables
+ +## DimCustomer + +| Attribute | +|:---:| +| CustomerID | +| CustomerName | +| Segment | +| CodigoPostal | +| IsCurrent | + +--- + +## DimProduct + +| Attribute | +|:---:| +| ProductID | +| ProductName | +| Category | +| SubCategory | + +--- + +## DimDate + +| Attribute | +|:---:| +| DateKey_Order | +| DateKey_Ship | +| Year | +| Date | +| Semester | +| Week | +| Quarter | +| Month | +| Weekday | + +--- + +## DimRegion + +| Attribute | +|:---:| +| CodigoPostal | +| RegionName | +| CountryName | +| StateName | +| Market | +| CityName | + +--- + +## DimShipMode + +| Attribute | +|:---:| +| ShipOrderID | +| ShipModeName | +| Method | + +--- + +#
Business Objectives
+ +The model was designed to answer analytical questions such as: + +- Which products generate the highest sales? +- Which regions generate the highest profit? +- Which customers spend the most? +- What is the impact of discounts on profit? +- Which shipment methods are most used? +- What are the main return reasons? +- How do sales evolve over time? --- @@ -81,228 +199,81 @@ The architecture follows a classic star schema approach to maximize reporting pe | Technology | Purpose | |:---:|:---:| -| Power BI Desktop | Dashboard development | +| Power BI | Dashboard visualization | +| Excel | Source data | +| SQL Concepts | Data modeling | +| Star Schema | Data warehouse architecture | +| DAX | KPI calculations | | Power Query | Data transformation | -| DAX | KPI and measure creation | -| Excel | Data source | -| Data Warehouse Modeling | Analytical structure | -| Star Schema | Dimensional architecture | --- -#
Main Dashboards
- -## 1. Top Selling Products - -This dashboard identifies the five products with the highest sales value. :contentReference[oaicite:1]{index=1} - -### Example Results - -| Product | Sales | -|:---:|:---:| -| Apple Smart Phone | €86,935 | -| Cisco Smart Phone | €76,441 | -| Motorola Smart Phone | €73,156 | -| Nokia Smart Phone | €71,904 | -| Canon imageCLASS 2200 | €61,599 | - ---- - -## 2. Profit by Region - -Regional profitability analysis across global markets. :contentReference[oaicite:2]{index=2} - -### Main Regions - -- Western Europe -- Eastern Asia -- Southern Asia -- Northern Europe -- Oceania -- LATAM -- USCA - ---- - -## 3. Monthly Sales Analysis - -Monthly sales distribution dashboard. :contentReference[oaicite:3]{index=3} - -### Features - -- Monthly sales trends -- Shipping method filtering -- Category filtering -- Market analysis - ---- - -## 4. Discount Analysis - -Average discount analysis by product category. :contentReference[oaicite:4]{index=4} - -### Categories - -| Category | -|:---:| -| Furniture | -| Office Supplies | -| Technology | - ---- - -## 5. Shipment Mode Analysis - -Analysis of the most used shipment methods for electronic products. :contentReference[oaicite:5]{index=5} - -### Shipping Modes - -| Mode | -|:---:| -| Standard Class | -| Second Class | -| First Class | -| Same Day | - ---- - -## 6. Product Return Analysis - -Analysis of returned products and return reasons. :contentReference[oaicite:6]{index=6} - -### Main Return Reasons - -| Reason | Quantity | -|:---:|:---:| -| Damaged Product | 234 | -| Other | 224 | -| Incorrect Size | 212 | -| Wrong Product | 207 | -| Late Delivery | 202 | - ---- - -## 7. Customer Segment Analysis - -Sales distribution by customer segment. :contentReference[oaicite:7]{index=7} - -### Segments - -| Segment | Sales | -|:---:|:---:| -| Consumer | €4.24M | -| Corporate | €4.21M | -| Home Office | €4.18M | - ---- - -## 8. Top Customers Dashboard - -Identification of the customers with the highest spending. :contentReference[oaicite:8]{index=8} - -### Top Customers - -| Customer | Sales | -|:---:|:---:| -| Igor Dutra | €13,716 | -| Gabriela Almeida | €10,552 | -| Barry Franz | €9,286 | -| Luiza Araújo | €8,167 | -| Aline Macedo | €7,383 | - ---- - -## 9. Discount Impact on Profit - -Subcategory-level analysis of discount impact on profitability. :contentReference[oaicite:9]{index=9} - -### Product Subcategories - -- Accessories -- Copiers -- Machines -- Phones - ---- - -## 10. Market Performance Dashboard - -Comprehensive sales, quantity, profit and discount analysis by market. :contentReference[oaicite:10]{index=10} - -### Example Results - -| Market | Sales | Profit | -|:---:|:---:|:---:| -| Europe | €1.41M | €176K | -| Asia Pacific | €1.40M | €157K | -| LATAM | €729K | €82K | -| USCA | €461K | €50K | -| Africa | €280K | €37K | - ---- - -#
Interactive Features
- -The Power BI solution includes: - -- Dynamic filters -- Drill-down navigation -- Cross-filtering -- Market selection -- Date range filtering -- Segment analysis -- Shipment filtering - ---- - -#
Power BI Features
- -## Implemented Functionalities - -| Feature | Description | -|:---:|:---:| -| DAX Measures | KPI calculations | -| Interactive Slicers | Dynamic filtering | -| Custom Visualizations | Advanced charts | -| Star Schema | Optimized analytics | -| Data Relationships | Fact-dimension modeling | -| Drillthrough | Interactive navigation | - ---- - -#
Workflow
+#
Data Warehouse Workflow
```txt -Excel Data Sources - ↓ -Data Cleaning & Transformation - ↓ -Star Schema Modeling - ↓ -Fact & Dimension Relationships - ↓ -DAX Measure Creation - ↓ -Dashboard Development - ↓ -Interactive Analytics - ↓ -Business Insights +Operational Data + ↓ +Data Cleaning + ↓ +Transformation + ↓ +Dimension Creation + ↓ +Fact Table Population + ↓ +Relationship Modeling + ↓ +Power BI Integration + ↓ +Business Analytics ``` --- -#
Business Questions Answered
+#
Analytical Capabilities
-The dashboards answer questions such as: +## Sales Analytics -- Which products generate the most sales? -- Which regions generate the highest profit? -- Which shipping methods are most used? -- What are the most common return reasons? -- Which customers spend the most? -- What is the impact of discounts on profitability? -- How are sales distributed across customer segments? +- Revenue analysis +- Profitability tracking +- Product performance +- Customer segmentation + +--- + +## Logistics Analytics + +- Shipment mode analysis +- Delivery analysis +- Shipping cost monitoring + +--- + +## Return Analytics + +- Product return tracking +- Return reason analysis +- Return quantity monitoring + +--- + +## Geographic Analytics + +- Regional profit analysis +- Country-level analysis +- Market segmentation + +--- + +#
Advantages of the Model
+ +| Advantage | Description | +|:---:|:---:| +| Performance | Optimized analytical queries | +| Scalability | Easy integration of new dimensions | +| Simplicity | Easy BI dashboard integration | +| Flexibility | Supports multiple business analyses | +| Maintainability | Clear separation of dimensions and facts | --- @@ -310,53 +281,30 @@ The dashboards answer questions such as: | Requirement | Description | |:---:|:---:| -| Power BI Desktop | Required to open `.pbix` | -| Excel | Source data management | +| Power BI Desktop | Dashboard development | +| Excel | Data source handling | +| SQL Knowledge | Optional for extensions | | Windows OS | Recommended environment | --- -#
How to Use
- -1. Open `PBI.pbix` using Power BI Desktop. -2. Refresh the data model if needed. -3. Navigate through the dashboards. -4. Use slicers and filters interactively. -5. Analyze KPIs and visual insights. - ---- - #
Future Improvements
-- Real-time logistics integration -- SQL Server connectivity -- Incremental refresh -- Mobile optimization -- AI-based forecasting -- Shipment prediction models -- Customer churn analysis -- Power BI Service deployment - ---- - -#
Security Notes
- -This project may contain operational and customer analytical data. - -Users should: - -- Protect sensitive datasets -- Validate analytical outputs -- Control Power BI sharing permissions -- Secure exported reports +- SQL Server migration +- ETL pipeline automation +- Real-time analytics +- Incremental data refresh +- Cloud data warehouse integration +- Predictive analytics +- Machine learning integration --- #
Disclaimer
-This project was developed for Business Intelligence and analytical purposes. +This project was developed for academic and Business Intelligence purposes. -Users remain responsible for validating all operational decisions based on the generated dashboards and KPIs. +Users remain responsible for validating data integrity and analytical outputs before operational usage. --- @@ -364,4 +312,4 @@ Users remain responsible for validating all operational decisions based on the g José Garcia Data Scientist -Business Intelligence & Process Digitalization \ No newline at end of file +Business Intelligence & Data Warehouse Engineering \ No newline at end of file