# altamash-analyst/retail-customer-sales-segmentation architecture

> Architecture diagram of the GitHub repository altamash-analyst/retail-customer-sales-segmentation, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/altamash-analyst/retail-customer-sales-segmentation
- Repository: https://github.com/altamash-analyst/retail-customer-sales-segmentation

## Overview

This is a Power BI customer analytics product: workbook data is prepared and modeled for reusable DAX calculations, then presented in five interactive dashboard views for customer and retention decisions. The README documents the workflow and capabilities; no implementation excerpts were available, so the graph does not infer internal calls beyond those documented.

Main entry points: [`Customer_Sales_Segmentation_Day2.pbix`](https://github.com/altamash-analyst/retail-customer-sales-segmentation/blob/main/Customer_Sales_Segmentation_Day2.pbix) (Reusable DAX Measures), [`Customer_Sales_Segmentation_Day2.xlsx`](https://github.com/altamash-analyst/retail-customer-sales-segmentation/blob/main/Customer_Sales_Segmentation_Day2.xlsx) (Analysis Workbook)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Data Inputs"]
  node_workbook[("Analysis Workbook")]
  node_customers["Customer Data"]
  node_orders["Order Data"]
  node_products["Product Data"]
  node_regions["Regional Data"]
  node_targets["Target Data"]
end

subgraph group_analytics["Analytics Model"]
  node_prep["Power Query Preparation"]
  node_model[("Connected Data Model")]
  node_measures["Reusable DAX Measures"]
end

subgraph group_dashboards["Dashboard Views"]
  node_overview["Customer Overview"]
  node_segmentation["Customer Segmentation"]
  node_rfm["Customer Value RFM"]
  node_geography["Customer Geography"]
  node_insights["Management Insights"]
end

subgraph group_decision["Customer Decisions"]
  node_retention["Retention Priorities"]
end

node_manager(("Management User"))

node_workbook -->|"prepared with"| node_prep
node_customers -->|"stored in"| node_workbook
node_orders -->|"stored in"| node_workbook
node_products -->|"stored in"| node_workbook
node_regions -->|"stored in"| node_workbook
node_targets -->|"stored in"| node_workbook
node_prep -->|"loads tables"| node_model
node_model -->|"supports calculations"| node_measures
node_measures -->|"powers metrics"| node_overview
node_measures -->|"powers analysis"| node_segmentation
node_measures -->|"powers analysis"| node_rfm
node_measures -->|"powers analysis"| node_geography
node_measures -->|"powers analysis"| node_insights
node_manager -->|"reviews dashboard"| node_overview
node_insights -->|"guides prioritization"| node_retention
node_rfm -->|"identifies risk"| node_retention

click node_workbook "https://github.com/altamash-analyst/retail-customer-sales-segmentation/blob/main/Customer_Sales_Segmentation_Day2.xlsx"
click node_customers "https://github.com/altamash-analyst/retail-customer-sales-segmentation/blob/main/Customer_Sales_Segmentation_Day2.xlsx"
click node_orders "https://github.com/altamash-analyst/retail-customer-sales-segmentation/blob/main/Customer_Sales_Segmentation_Day2.xlsx"
click node_products "https://github.com/altamash-analyst/retail-customer-sales-segmentation/blob/main/Customer_Sales_Segmentation_Day2.xlsx"
click node_regions "https://github.com/altamash-analyst/retail-customer-sales-segmentation/blob/main/Customer_Sales_Segmentation_Day2.xlsx"
click node_targets "https://github.com/altamash-analyst/retail-customer-sales-segmentation/blob/main/Customer_Sales_Segmentation_Day2.xlsx"
click node_prep "https://github.com/altamash-analyst/retail-customer-sales-segmentation/blob/main/Customer_Sales_Segmentation_Day2.pbix"
click node_model "https://github.com/altamash-analyst/retail-customer-sales-segmentation/blob/main/Customer_Sales_Segmentation_Day2.pbix"
click node_measures "https://github.com/altamash-analyst/retail-customer-sales-segmentation/blob/main/Customer_Sales_Segmentation_Day2.pbix"
click node_overview "https://github.com/altamash-analyst/retail-customer-sales-segmentation/blob/main/Customer_Sales_Segmentation_Day2.pbix"
click node_segmentation "https://github.com/altamash-analyst/retail-customer-sales-segmentation/blob/main/Customer_Sales_Segmentation_Day2.pbix"
click node_rfm "https://github.com/altamash-analyst/retail-customer-sales-segmentation/blob/main/Customer_Sales_Segmentation_Day2.pbix"
click node_geography "https://github.com/altamash-analyst/retail-customer-sales-segmentation/blob/main/Customer_Sales_Segmentation_Day2.pbix"
click node_insights "https://github.com/altamash-analyst/retail-customer-sales-segmentation/blob/main/Customer_Sales_Segmentation_Day2.pbix"
click node_retention "https://github.com/altamash-analyst/retail-customer-sales-segmentation/blob/main/Customer_Sales_Segmentation_Day2.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_workbook,node_customers,node_orders,node_products,node_regions,node_targets,node_manager toneBlue
class node_prep,node_model,node_measures toneAmber
class node_overview,node_segmentation,node_rfm,node_geography,node_insights toneMint
class node_retention toneRose
```

## Components

### Data Inputs

- [Analysis Workbook](https://github.com/altamash-analyst/retail-customer-sales-segmentation/blob/main/Customer_Sales_Segmentation_Day2.xlsx): `Customer_Sales_Segmentation_Day2.xlsx`
- [Customer Data](https://github.com/altamash-analyst/retail-customer-sales-segmentation/blob/main/Customer_Sales_Segmentation_Day2.xlsx): `Customer_Sales_Segmentation_Day2.xlsx`
- [Order Data](https://github.com/altamash-analyst/retail-customer-sales-segmentation/blob/main/Customer_Sales_Segmentation_Day2.xlsx): `Customer_Sales_Segmentation_Day2.xlsx`
- [Product Data](https://github.com/altamash-analyst/retail-customer-sales-segmentation/blob/main/Customer_Sales_Segmentation_Day2.xlsx): `Customer_Sales_Segmentation_Day2.xlsx`
- [Regional Data](https://github.com/altamash-analyst/retail-customer-sales-segmentation/blob/main/Customer_Sales_Segmentation_Day2.xlsx): `Customer_Sales_Segmentation_Day2.xlsx`
- [Target Data](https://github.com/altamash-analyst/retail-customer-sales-segmentation/blob/main/Customer_Sales_Segmentation_Day2.xlsx): `Customer_Sales_Segmentation_Day2.xlsx`

### Analytics Model

- [Power Query Preparation](https://github.com/altamash-analyst/retail-customer-sales-segmentation/blob/main/Customer_Sales_Segmentation_Day2.pbix): `Customer_Sales_Segmentation_Day2.pbix`
- [Connected Data Model](https://github.com/altamash-analyst/retail-customer-sales-segmentation/blob/main/Customer_Sales_Segmentation_Day2.pbix): `Customer_Sales_Segmentation_Day2.pbix`
- [Reusable DAX Measures](https://github.com/altamash-analyst/retail-customer-sales-segmentation/blob/main/Customer_Sales_Segmentation_Day2.pbix): `Customer_Sales_Segmentation_Day2.pbix`

### Dashboard Views

- [Customer Overview](https://github.com/altamash-analyst/retail-customer-sales-segmentation/blob/main/Customer_Sales_Segmentation_Day2.pbix): `Customer_Sales_Segmentation_Day2.pbix`
- [Customer Segmentation](https://github.com/altamash-analyst/retail-customer-sales-segmentation/blob/main/Customer_Sales_Segmentation_Day2.pbix): `Customer_Sales_Segmentation_Day2.pbix`
- [Customer Value RFM](https://github.com/altamash-analyst/retail-customer-sales-segmentation/blob/main/Customer_Sales_Segmentation_Day2.pbix): `Customer_Sales_Segmentation_Day2.pbix`
- [Customer Geography](https://github.com/altamash-analyst/retail-customer-sales-segmentation/blob/main/Customer_Sales_Segmentation_Day2.pbix): `Customer_Sales_Segmentation_Day2.pbix`
- [Management Insights](https://github.com/altamash-analyst/retail-customer-sales-segmentation/blob/main/Customer_Sales_Segmentation_Day2.pbix): `Customer_Sales_Segmentation_Day2.pbix`

### Customer Decisions

- [Retention Priorities](https://github.com/altamash-analyst/retail-customer-sales-segmentation/blob/main/Customer_Sales_Segmentation_Day2.pbix): `Customer_Sales_Segmentation_Day2.pbix`

### Other components

- **Management User**

## Connections

- Analysis Workbook → Power Query Preparation: prepared with (evidence: `README.md`)
- Customer Data → Analysis Workbook: stored in (evidence: `README.md`)
- Order Data → Analysis Workbook: stored in (evidence: `README.md`)
- Product Data → Analysis Workbook: stored in (evidence: `README.md`)
- Regional Data → Analysis Workbook: stored in (evidence: `README.md`)
- Target Data → Analysis Workbook: stored in (evidence: `README.md`)
- Power Query Preparation → Connected Data Model: loads tables (evidence: `README.md`)
- Connected Data Model → Reusable DAX Measures: supports calculations (evidence: `README.md`)
- Reusable DAX Measures → Customer Overview: powers metrics (evidence: `README.md`)
- Reusable DAX Measures → Customer Segmentation: powers analysis (evidence: `README.md`)
- Reusable DAX Measures → Customer Value RFM: powers analysis (evidence: `README.md`)
- Reusable DAX Measures → Customer Geography: powers analysis (evidence: `README.md`)
- Reusable DAX Measures → Management Insights: powers analysis (evidence: `README.md`)
- Management User → Customer Overview: reviews dashboard (evidence: `README.md`)
- Management Insights → Retention Priorities: guides prioritization (evidence: `README.md`)
- Customer Value RFM → Retention Priorities: identifies risk (evidence: `README.md`)
