Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,11 +1,91 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
colorFrom: blue
|
| 5 |
-
colorTo:
|
| 6 |
sdk: streamlit
|
| 7 |
-
sdk_version: 1.
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
-
license:
|
| 11 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: SAP Sales KPI Dashboard
|
| 3 |
+
emoji: π
|
| 4 |
colorFrom: blue
|
| 5 |
+
colorTo: purple
|
| 6 |
sdk: streamlit
|
| 7 |
+
sdk_version: 1.28.1
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
+
license: mit
|
| 11 |
---
|
| 12 |
+
|
| 13 |
+
# SAP Sales KPI Dashboard
|
| 14 |
+
|
| 15 |
+
## Overview
|
| 16 |
+
A comprehensive Streamlit dashboard analyzing real SAP ERP data from Kaggle, focusing on sales performance KPIs.
|
| 17 |
+
|
| 18 |
+
## Data Source
|
| 19 |
+
- **Dataset**: [mustafakeser4/sap-dataset-bigquery-dataset](https://www.kaggle.com/datasets/mustafakeser4/sap-dataset-bigquery-dataset)
|
| 20 |
+
- **Tables Used**: VBAK, VBAP, KNA1, VBRK, VBRP, MAKT, and supporting tables
|
| 21 |
+
- **Records**: Thousands of real SAP transactions
|
| 22 |
+
|
| 23 |
+
## Key Features
|
| 24 |
+
|
| 25 |
+
### π― Sales KPIs
|
| 26 |
+
- **Customer Analysis**: Top 10 customers by revenue with customer concentration metrics
|
| 27 |
+
- **Regional Performance**: Country-wise sales breakdown and geographic insights
|
| 28 |
+
- **Sales Organizations**: Performance by SAP sales organization and distribution channels
|
| 29 |
+
- **Product Analysis**: Top 10 products by revenue with material descriptions
|
| 30 |
+
|
| 31 |
+
### π Analytics Modules
|
| 32 |
+
|
| 33 |
+
#### π₯ Customer Analysis
|
| 34 |
+
- Revenue ranking of top customers
|
| 35 |
+
- Customer concentration analysis
|
| 36 |
+
- Customer master data integration (KNA1)
|
| 37 |
+
|
| 38 |
+
#### π Regional Performance
|
| 39 |
+
- Country-wise revenue distribution
|
| 40 |
+
- Geographic performance insights
|
| 41 |
+
- Regional market analysis
|
| 42 |
+
|
| 43 |
+
#### π Sales Organization Analysis
|
| 44 |
+
- Sales organization (VKORG) performance
|
| 45 |
+
- Distribution channel (VTWEG) effectiveness
|
| 46 |
+
- Organizational structure insights
|
| 47 |
+
|
| 48 |
+
#### ποΈ Product Performance
|
| 49 |
+
- Top-performing materials by revenue
|
| 50 |
+
- Product descriptions from MAKT table
|
| 51 |
+
- Material master data integration
|
| 52 |
+
|
| 53 |
+
#### π Data Quality Overview
|
| 54 |
+
- Dataset completeness metrics
|
| 55 |
+
- Revenue distribution analysis
|
| 56 |
+
- Sample data exploration
|
| 57 |
+
|
| 58 |
+
## Technical Implementation
|
| 59 |
+
|
| 60 |
+
### Data Processing
|
| 61 |
+
- **Real-time Kaggle Integration**: Uses kagglehub to download latest dataset
|
| 62 |
+
- **SAP Table Joins**: Combines VBAK (sales orders) with VBAP (line items)
|
| 63 |
+
- **Master Data Integration**: Enriches with customer (KNA1) and material (MAKT) data
|
| 64 |
+
- **Data Quality Handling**: Manages missing values and data type conversions
|
| 65 |
+
|
| 66 |
+
### Performance Optimization
|
| 67 |
+
- **Selective Loading**: Loads only essential columns and limits record count
|
| 68 |
+
- **Caching**: Streamlit caching for improved performance
|
| 69 |
+
- **Error Handling**: Graceful degradation when tables are unavailable
|
| 70 |
+
|
| 71 |
+
## SAP Tables Used
|
| 72 |
+
|
| 73 |
+
| Table | Description | Usage |
|
| 74 |
+
|-------|-------------|-------|
|
| 75 |
+
| VBAK | Sales Document Header | Main sales orders |
|
| 76 |
+
| VBAP | Sales Document Items | Line item details |
|
| 77 |
+
| KNA1 | Customer Master | Customer information |
|
| 78 |
+
| MAKT | Material Descriptions | Product names |
|
| 79 |
+
| VBRK | Billing Header | Invoice data |
|
| 80 |
+
| VBRP | Billing Items | Invoice line items |
|
| 81 |
+
|
| 82 |
+
## Interactive Features
|
| 83 |
+
- **Organization Filtering**: Focus on specific sales organizations
|
| 84 |
+
- **Real-time Calculations**: Dynamic KPI updates based on filters
|
| 85 |
+
- **Export Capabilities**: Download processed data as CSV
|
| 86 |
+
- **Responsive Design**: Optimized for various screen sizes
|
| 87 |
+
|
| 88 |
+
## Deployment
|
| 89 |
+
Deployed on Hugging Face Spaces with automatic Kaggle dataset synchronization.
|
| 90 |
+
|
| 91 |
+
Perfect for SAP analysts, sales managers, and business intelligence teams needing quick insights from real ERP data.
|