# muneeb-alam1/adventure-works-end-to-end-analysis architecture

> Architecture diagram of the GitHub repository muneeb-alam1/adventure-works-end-to-end-analysis, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/muneeb-alam1/adventure-works-end-to-end-analysis
- Repository: https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis

## Overview

Adventure Works Sales Analysis is a MySQL-to-Power BI analytics project. Its documented workflow is to clean sales and lookup data, analyze revenue, products, customers, geography, and time trends with SQL, then present findings in an interactive dashboard. The README describes the dashboard’s KPI, product, map, and customer experiences. Source excerpts were unavailable, so relationships below rely on the README’s documented workflow and query examples; the dashboard’s internal implementation is represented at the PBIX-file level.

Main entry points: [`dashboard/Adventure Works Dashboard New.pbix`](https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/dashboard/Adventure%20Works%20Dashboard%20New.pbix) (Interactive Dashboard), [`queries/data_cleaning.sql`](https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/queries/data_cleaning.sql) (Data Cleaning), [`queries/product_detail.sql`](https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/queries/product_detail.sql) (Product Analysis), [`queries/kpi_summary.sql`](https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/queries/kpi_summary.sql) (KPI Summary)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_inputs["Data Inputs"]
  node_sales["Sales Data<br/>[Sales_Data.csv]"]
  node_customers["Customer Lookup"]
  node_products["Product Lookup"]
  node_categories["Categories Lookup"]
  node_subcategories["Subcategories Lookup"]
  node_territory["Territory Lookup"]
  node_returns["Returns Data"]
  node_calendar["Calendar Lookup"]
end

subgraph group_prep["SQL Preparation"]
  node_cleaning["Data Cleaning<br/>[data_cleaning.sql]"]
end

subgraph group_analysis["SQL Analysis"]
  node_kpi["KPI Summary<br/>[kpi_summary.sql]"]
  node_product["Product Analysis<br/>[product_detail.sql]"]
  node_customer["Customer Demographics"]
  node_geography["Geographic Analysis"]
  node_time["Time Analysis<br/>[time_analysis.sql]"]
end

subgraph group_bi["Power BI"]
  node_dashboard["Interactive Dashboard"]
  node_dashboard_kpis["KPI Measures"]
  node_dashboard_product["Product Drill-through"]
  node_dashboard_map["World Map"]
  node_dashboard_customer["Customer Detail"]
end

node_sales -->|"cleans"| node_cleaning
node_customers -->|"cleans"| node_cleaning
node_returns -->|"cleans"| node_cleaning
node_cleaning -->|"prepares data for"| node_kpi
node_cleaning -->|"prepares data for"| node_product
node_cleaning -->|"prepares data for"| node_customer
node_cleaning -->|"prepares data for"| node_geography
node_cleaning -->|"prepares data for"| node_time
node_products -->|"joins"| node_product
node_categories -->|"joins"| node_product
node_subcategories -->|"joins"| node_product
node_territory -->|"joins"| node_geography
node_customers -->|"joins"| node_customer
node_calendar -->|"supports trends"| node_time
node_returns -->|"supports return rate"| node_kpi
node_kpi -->|"informs"| node_dashboard
node_product -->|"informs"| node_dashboard
node_customer -->|"informs"| node_dashboard
node_geography -->|"informs"| node_dashboard
node_time -->|"informs"| node_dashboard
node_dashboard -->|"presents"| node_dashboard_kpis
node_dashboard -->|"presents"| node_dashboard_product
node_dashboard -->|"presents"| node_dashboard_map
node_dashboard -->|"presents"| node_dashboard_customer

click node_sales "https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/data/Sales_Data.csv"
click node_customers "https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/data/AdventureWorks%20Customer%20Lookup.csv"
click node_products "https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/data/AdventureWorks%20Product%20Lookup.csv"
click node_categories "https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/data/AdventureWorks%20Product%20Categories%20Lookup.csv"
click node_subcategories "https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/data/AdventureWorks%20Product%20Subcategories%20Lookup.csv"
click node_territory "https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/data/AdventureWorks%20Territory%20Lookup.csv"
click node_returns "https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/data/AdventureWorks%20Returns%20Data.csv"
click node_calendar "https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/data/AdventureWorks%20Calendar%20Lookup.csv"
click node_cleaning "https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/queries/data_cleaning.sql"
click node_kpi "https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/queries/kpi_summary.sql"
click node_product "https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/queries/product_detail.sql"
click node_customer "https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/queries/customer_demographics.sql"
click node_geography "https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/queries/geographic_analysis.sql"
click node_time "https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/queries/time_analysis.sql"
click node_dashboard "https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/dashboard/Adventure%20Works%20Dashboard%20New.pbix"
click node_dashboard_kpis "https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/dashboard/Adventure%20Works%20Dashboard%20New.pbix"
click node_dashboard_product "https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/dashboard/Adventure%20Works%20Dashboard%20New.pbix"
click node_dashboard_map "https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/dashboard/Adventure%20Works%20Dashboard%20New.pbix"
click node_dashboard_customer "https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/dashboard/Adventure%20Works%20Dashboard%20New.pbix"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_sales,node_customers,node_products,node_categories,node_subcategories,node_territory,node_returns,node_calendar toneBlue
class node_cleaning toneAmber
class node_kpi,node_product,node_customer,node_geography,node_time toneMint
class node_dashboard,node_dashboard_kpis,node_dashboard_product,node_dashboard_map,node_dashboard_customer toneRose
```

## Components

### Data Inputs

- [Sales Data](https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/data/Sales_Data.csv): `data/Sales_Data.csv`
- [Customer Lookup](https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/data/AdventureWorks%20Customer%20Lookup.csv): `data/AdventureWorks Customer Lookup.csv`
- [Product Lookup](https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/data/AdventureWorks%20Product%20Lookup.csv): `data/AdventureWorks Product Lookup.csv`
- [Categories Lookup](https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/data/AdventureWorks%20Product%20Categories%20Lookup.csv): `data/AdventureWorks Product Categories Lookup.csv`
- [Subcategories Lookup](https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/data/AdventureWorks%20Product%20Subcategories%20Lookup.csv): `data/AdventureWorks Product Subcategories Lookup.csv`
- [Territory Lookup](https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/data/AdventureWorks%20Territory%20Lookup.csv): `data/AdventureWorks Territory Lookup.csv`
- [Returns Data](https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/data/AdventureWorks%20Returns%20Data.csv): `data/AdventureWorks Returns Data.csv`
- [Calendar Lookup](https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/data/AdventureWorks%20Calendar%20Lookup.csv): `data/AdventureWorks Calendar Lookup.csv`

### SQL Preparation

- [Data Cleaning](https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/queries/data_cleaning.sql): `queries/data_cleaning.sql`

### SQL Analysis

- [KPI Summary](https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/queries/kpi_summary.sql): `queries/kpi_summary.sql`
- [Product Analysis](https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/queries/product_detail.sql): `queries/product_detail.sql`
- [Customer Demographics](https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/queries/customer_demographics.sql): `queries/customer_demographics.sql`
- [Geographic Analysis](https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/queries/geographic_analysis.sql): `queries/geographic_analysis.sql`
- [Time Analysis](https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/queries/time_analysis.sql): `queries/time_analysis.sql`

### Power BI

- [Interactive Dashboard](https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/dashboard/Adventure%20Works%20Dashboard%20New.pbix): `dashboard/Adventure Works Dashboard New.pbix`
- [KPI Measures](https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/dashboard/Adventure%20Works%20Dashboard%20New.pbix): `dashboard/Adventure Works Dashboard New.pbix`
- [Product Drill-through](https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/dashboard/Adventure%20Works%20Dashboard%20New.pbix): `dashboard/Adventure Works Dashboard New.pbix`
- [World Map](https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/dashboard/Adventure%20Works%20Dashboard%20New.pbix): `dashboard/Adventure Works Dashboard New.pbix`
- [Customer Detail](https://github.com/muneeb-alam1/adventure-works-end-to-end-analysis/blob/main/dashboard/Adventure%20Works%20Dashboard%20New.pbix): `dashboard/Adventure Works Dashboard New.pbix`

## Connections

- Sales Data → Data Cleaning: cleans (evidence: `README.md`)
- Customer Lookup → Data Cleaning: cleans (evidence: `README.md`)
- Returns Data → Data Cleaning: cleans (evidence: `README.md`)
- Data Cleaning → KPI Summary: prepares data for (evidence: `README.md`)
- Data Cleaning → Product Analysis: prepares data for (evidence: `README.md`)
- Data Cleaning → Customer Demographics: prepares data for (evidence: `README.md`)
- Data Cleaning → Geographic Analysis: prepares data for (evidence: `README.md`)
- Data Cleaning → Time Analysis: prepares data for (evidence: `README.md`)
- Product Lookup → Product Analysis: joins (evidence: `README.md`)
- Categories Lookup → Product Analysis: joins (evidence: `README.md`)
- Subcategories Lookup → Product Analysis: joins (evidence: `README.md`)
- Territory Lookup → Geographic Analysis: joins (evidence: `README.md`)
- Customer Lookup → Customer Demographics: joins (evidence: `README.md`)
- Calendar Lookup → Time Analysis: supports trends (evidence: `README.md`)
- Returns Data → KPI Summary: supports return rate (evidence: `README.md`)
- KPI Summary → Interactive Dashboard: informs (evidence: `README.md`)
- Product Analysis → Interactive Dashboard: informs (evidence: `README.md`)
- Customer Demographics → Interactive Dashboard: informs (evidence: `README.md`)
- Geographic Analysis → Interactive Dashboard: informs (evidence: `README.md`)
- Time Analysis → Interactive Dashboard: informs (evidence: `README.md`)
- Interactive Dashboard → KPI Measures: presents (evidence: `README.md`)
- Interactive Dashboard → Product Drill-through: presents (evidence: `README.md`)
- Interactive Dashboard → World Map: presents (evidence: `README.md`)
- Interactive Dashboard → Customer Detail: presents (evidence: `README.md`)
