# aanandgupta301/e-commerce-sales-dashboard architecture

> Architecture diagram of the GitHub repository aanandgupta301/e-commerce-sales-dashboard, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/aanandgupta301/e-commerce-sales-dashboard
- Repository: https://github.com/aanandgupta301/e-commerce-sales-dashboard

## Overview

This repository is a Power BI e-commerce sales analysis dashboard. The user opens the report, explores KPI cards and interactive visualizations, and uses filters and cross-filtering to analyze revenue, orders, customers, products, categories, and payments. The documented data flow uses PostgreSQL, Power Query cleaning and transformation, a relational model, and DAX measures. The only implementation artifact is the PBIX file; its internal report structure could not be inspected, so component paths point to that file and relationships reflect README statements only.

Main entry points: [`Ecommerce_analysis.pbix`](https://github.com/aanandgupta301/e-commerce-sales-dashboard/blob/main/Ecommerce_analysis.pbix) (Relational Model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Data and Model"]
  node_postgres[("PostgreSQL")]
  node_powerquery["Power Query"]
  node_customer_data[("Customer Data")]
  node_order_data[("Order Data")]
  node_product_data[("Product Data")]
  node_payment_data[("Payment Data")]
  node_relational_model["Relational Model"]
end

subgraph group_analysis["Business Analysis"]
  node_dax["DAX Measures"]
  node_revenue["Revenue Analysis"]
  node_order_analysis["Order Analysis"]
  node_customer_analysis["Customer Analysis"]
  node_product_analysis["Product and Category Analysis"]
  node_payment_analysis["Payment Analysis"]
end

subgraph group_report["Dashboard Experience"]
  node_dashboard["Interactive Dashboard"]
  node_kpis["KPI Cards"]
  node_visualizations["Interactive Visuals"]
  node_filters["Filters and Cross-filtering"]
end

node_analyst(("Analyst"))

node_postgres -->|"provides data"| node_powerquery
node_powerquery -->|"transforms data"| node_relational_model
node_customer_data -->|"models with"| node_relational_model
node_order_data -->|"models with"| node_relational_model
node_product_data -->|"models with"| node_relational_model
node_payment_data -->|"models with"| node_relational_model
node_relational_model -->|"supports measures"| node_dax
node_dax -->|"calculates metrics"| node_kpis
node_relational_model -->|"supports analysis"| node_revenue
node_relational_model -->|"supports analysis"| node_order_analysis
node_relational_model -->|"supports analysis"| node_customer_analysis
node_relational_model -->|"supports analysis"| node_product_analysis
node_relational_model -->|"supports analysis"| node_payment_analysis
node_dashboard -->|"displays"| node_kpis
node_dashboard -->|"displays"| node_visualizations
node_analyst -->|"opens report"| node_dashboard
node_analyst -->|"applies"| node_filters
node_filters -->|"cross-filters"| node_visualizations

click node_powerquery "https://github.com/aanandgupta301/e-commerce-sales-dashboard/blob/main/Ecommerce_analysis.pbix"
click node_customer_data "https://github.com/aanandgupta301/e-commerce-sales-dashboard/blob/main/Ecommerce_analysis.pbix"
click node_order_data "https://github.com/aanandgupta301/e-commerce-sales-dashboard/blob/main/Ecommerce_analysis.pbix"
click node_product_data "https://github.com/aanandgupta301/e-commerce-sales-dashboard/blob/main/Ecommerce_analysis.pbix"
click node_payment_data "https://github.com/aanandgupta301/e-commerce-sales-dashboard/blob/main/Ecommerce_analysis.pbix"
click node_relational_model "https://github.com/aanandgupta301/e-commerce-sales-dashboard/blob/main/Ecommerce_analysis.pbix"
click node_dax "https://github.com/aanandgupta301/e-commerce-sales-dashboard/blob/main/Ecommerce_analysis.pbix"
click node_revenue "https://github.com/aanandgupta301/e-commerce-sales-dashboard/blob/main/Ecommerce_analysis.pbix"
click node_order_analysis "https://github.com/aanandgupta301/e-commerce-sales-dashboard/blob/main/Ecommerce_analysis.pbix"
click node_customer_analysis "https://github.com/aanandgupta301/e-commerce-sales-dashboard/blob/main/Ecommerce_analysis.pbix"
click node_product_analysis "https://github.com/aanandgupta301/e-commerce-sales-dashboard/blob/main/Ecommerce_analysis.pbix"
click node_payment_analysis "https://github.com/aanandgupta301/e-commerce-sales-dashboard/blob/main/Ecommerce_analysis.pbix"
click node_dashboard "https://github.com/aanandgupta301/e-commerce-sales-dashboard/blob/main/Ecommerce_analysis.pbix"
click node_kpis "https://github.com/aanandgupta301/e-commerce-sales-dashboard/blob/main/Ecommerce_analysis.pbix"
click node_visualizations "https://github.com/aanandgupta301/e-commerce-sales-dashboard/blob/main/Ecommerce_analysis.pbix"
click node_filters "https://github.com/aanandgupta301/e-commerce-sales-dashboard/blob/main/Ecommerce_analysis.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_postgres,node_powerquery,node_customer_data,node_order_data,node_product_data,node_payment_data,node_relational_model toneBlue
class node_dax,node_revenue,node_order_analysis,node_customer_analysis,node_product_analysis,node_payment_analysis toneAmber
class node_dashboard,node_kpis,node_visualizations,node_filters toneMint
class node_analyst toneIndigo
```

## Components

### Data and Model

- **PostgreSQL**
- [Power Query](https://github.com/aanandgupta301/e-commerce-sales-dashboard/blob/main/Ecommerce_analysis.pbix): `Ecommerce_analysis.pbix`
- [Customer Data](https://github.com/aanandgupta301/e-commerce-sales-dashboard/blob/main/Ecommerce_analysis.pbix): `Ecommerce_analysis.pbix`
- [Order Data](https://github.com/aanandgupta301/e-commerce-sales-dashboard/blob/main/Ecommerce_analysis.pbix): `Ecommerce_analysis.pbix`
- [Product Data](https://github.com/aanandgupta301/e-commerce-sales-dashboard/blob/main/Ecommerce_analysis.pbix): `Ecommerce_analysis.pbix`
- [Payment Data](https://github.com/aanandgupta301/e-commerce-sales-dashboard/blob/main/Ecommerce_analysis.pbix): `Ecommerce_analysis.pbix`
- [Relational Model](https://github.com/aanandgupta301/e-commerce-sales-dashboard/blob/main/Ecommerce_analysis.pbix): `Ecommerce_analysis.pbix`

### Business Analysis

- [DAX Measures](https://github.com/aanandgupta301/e-commerce-sales-dashboard/blob/main/Ecommerce_analysis.pbix): `Ecommerce_analysis.pbix`
- [Revenue Analysis](https://github.com/aanandgupta301/e-commerce-sales-dashboard/blob/main/Ecommerce_analysis.pbix): `Ecommerce_analysis.pbix`
- [Order Analysis](https://github.com/aanandgupta301/e-commerce-sales-dashboard/blob/main/Ecommerce_analysis.pbix): `Ecommerce_analysis.pbix`
- [Customer Analysis](https://github.com/aanandgupta301/e-commerce-sales-dashboard/blob/main/Ecommerce_analysis.pbix): `Ecommerce_analysis.pbix`
- [Product and Category Analysis](https://github.com/aanandgupta301/e-commerce-sales-dashboard/blob/main/Ecommerce_analysis.pbix): `Ecommerce_analysis.pbix`
- [Payment Analysis](https://github.com/aanandgupta301/e-commerce-sales-dashboard/blob/main/Ecommerce_analysis.pbix): `Ecommerce_analysis.pbix`

### Dashboard Experience

- [Interactive Dashboard](https://github.com/aanandgupta301/e-commerce-sales-dashboard/blob/main/Ecommerce_analysis.pbix): `Ecommerce_analysis.pbix`
- [KPI Cards](https://github.com/aanandgupta301/e-commerce-sales-dashboard/blob/main/Ecommerce_analysis.pbix): `Ecommerce_analysis.pbix`
- [Interactive Visuals](https://github.com/aanandgupta301/e-commerce-sales-dashboard/blob/main/Ecommerce_analysis.pbix): `Ecommerce_analysis.pbix`
- [Filters and Cross-filtering](https://github.com/aanandgupta301/e-commerce-sales-dashboard/blob/main/Ecommerce_analysis.pbix): `Ecommerce_analysis.pbix`

### Other components

- **Analyst**

## Connections

- PostgreSQL → Power Query: provides data (evidence: `README.md`)
- Power Query → Relational Model: transforms data (evidence: `README.md`)
- Customer Data → Relational Model: models with (evidence: `README.md`)
- Order Data → Relational Model: models with (evidence: `README.md`)
- Product Data → Relational Model: models with (evidence: `README.md`)
- Payment Data → Relational Model: models with (evidence: `README.md`)
- Relational Model → DAX Measures: supports measures (evidence: `README.md`)
- DAX Measures → KPI Cards: calculates metrics (evidence: `README.md`)
- Relational Model → Revenue Analysis: supports analysis (evidence: `README.md`)
- Relational Model → Order Analysis: supports analysis (evidence: `README.md`)
- Relational Model → Customer Analysis: supports analysis (evidence: `README.md`)
- Relational Model → Product and Category Analysis: supports analysis (evidence: `README.md`)
- Relational Model → Payment Analysis: supports analysis (evidence: `README.md`)
- Interactive Dashboard → KPI Cards: displays (evidence: `README.md`)
- Interactive Dashboard → Interactive Visuals: displays (evidence: `README.md`)
- Analyst → Interactive Dashboard: opens report (evidence: `README.md`)
- Analyst → Filters and Cross-filtering: applies (evidence: `README.md`)
- Filters and Cross-filtering → Interactive Visuals: cross-filters (evidence: `README.md`)
