# bhattkaushal/olympics-dashboard architecture

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

- Interactive diagram: https://gitdiagram.com/bhattkaushal/olympics-dashboard
- Repository: https://github.com/bhattkaushal/olympics-dashboard

## Overview

1. **Project type**
   - This repository is a single Power BI analytics artifact, centered on `Olympics Dashboard.pbix`.
   - The architecture is not a multi-service app; it is a self-contained BI report with embedded data preparation, semantic modeling, and visual layers.

2. **Primary input domain**
   - The report analyzes historical Olympic Games data.
   - The core entities implied by the dashboard are athletes, events, nations/countries, medals, sports, gender, and Olympic editions/years.

3. **Data acquisition boundary**
   - Data is brought into Power BI as imported datasets rather than handled by application code in the repo.
   - The README indicates the source data includes athlete details, event outcomes, and country information.

4. **Transformation layer**
   - Power Query Editor is used as the ETL boundary inside the PBIX.
   - This layer cleans and formats data, removes nulls and duplicates, and merges relevant tables before the model is built.
   - Calculated columns and measures are also created here or in the semantic model layer, depending on how the PBIX was authored.

5. **Semantic data model**
   - The report is modeled around relationships between Athletes, Events, Nations, and Medals.
   - This model is the analytical backbone that supports filtering and aggregation across years, countries, sports, and genders.
   - Referential integrity and schema optimization are called out as part of the design, suggesting a deliberate star-like analytical model.

6. **Calculation layer**
   - The dashboard relies on Power BI measures and calculated fields for metrics such as medal totals, rankings, participation trends, and breakdowns by demographic or event dimensions.
   - These calculations feed the visuals rather than being precomputed outside the report.

7. **Report and interaction layer**
   - The front end is a multi-page Power BI report with interactive visuals.
   - The main interaction surfaces are slicers and filters for year, country, sport, and gender, which drive cross-filtering across charts and maps.

8. **Visualization subsystem**
   - The report uses bar, line, and stacked charts for trends and comparisons.
   - It also includes geographic visualization through a map visual, specifically mentioning Google Maps visual/custom visuals.
   - This implies a mix of standard Power BI visuals and at least one external/custom visual component.

9. **Published consumption boundary**
   - The finished artifact is published to Power BI Service for sharing and browser-based consumption.
   - The service link represents the deployment boundary between the local desktop-authored PBIX and the hosted, interactive report.

10. **Operational workflow**
   - The lifecycle is: import data, transform in Power Query, define the model and measures, build visuals, then publish.
   - There is no evidence of a separate backend, API layer, or application runtime in this repository beyond Power BI Desktop and Power BI Service.

11. **Repository contents**
   - The repo intentionally remains minimal: one PBIX file plus documentation.
   - That means the architecture diagram should center on Power BI internals rather than on source-code modules or application servers.

12. **Suggested diagram framing**
   - A useful architecture diagram would show: Olympic source data feeding Power Query ETL, then the semantic model, then report visuals, then Power BI Service as the distribution layer.
   - The main boundaries are data ingestion, transformation/modeling, visualization, and publishing/sharing.

Main entry points: [`Olympics Dashboard.pbix`](https://github.com/bhattkaushal/olympics-dashboard/blob/HEAD/Olympics%20Dashboard.pbix) (PBIX artifact), [`README.md`](https://github.com/bhattkaushal/olympics-dashboard/blob/main/README.md) (README)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_g1["Input & Docs"]
  node_n1[("Olympics data<br/>source dataset")]
  node_n2["README<br/>documentation<br/>[README.md]"]
end

subgraph group_g2["Power BI Desktop"]
  node_n3["PBIX artifact<br/>power bi file"]
  node_n4["Import layer<br/>data ingestion"]
  node_n5["Power Query<br/>etl transform"]
  node_n6["Data cleanup<br/>prep step"]
  node_n7["Table merges<br/>prep step"]
  node_n8["Semantic model<br/>analysis model"]
  node_n9["Relationships<br/>model links"]
  node_n10["Measures<br/>dax metrics"]
  node_n11["Calculated fields<br/>model calc"]
end

subgraph group_g3["Report & Interactions"]
  node_n12["Report pages<br/>dashboard pages"]
  node_n13["Slicers<br/>interaction filters"]
  node_n14["Trend charts<br/>visuals"]
  node_n15(("Map visual<br/>geo visual"))
end

subgraph group_g4["Publish & Consumption"]
  node_n16[("Power BI Service<br/>published report")]
end

node_n1 -->|"imported by"| node_n4
node_n2 -.->|"documents"| node_n3
node_n3 -->|"contains"| node_n4
node_n4 -->|"routes to"| node_n5
node_n5 -->|"cleans"| node_n6
node_n5 -->|"merges"| node_n7
node_n6 -->|"feeds"| node_n8
node_n7 -->|"feeds"| node_n8
node_n8 -->|"relates"| node_n9
node_n8 -->|"computes"| node_n10
node_n8 -->|"derives"| node_n11
node_n9 -->|"supports"| node_n12
node_n10 -->|"drives"| node_n14
node_n11 -->|"enables"| node_n13
node_n12 -->|"includes"| node_n13
node_n12 -->|"renders"| node_n14
node_n12 -->|"renders"| node_n15
node_n12 -->|"published to"| node_n16
node_n3 -.->|"deploys to"| node_n16

click node_n2 "https://github.com/bhattkaushal/olympics-dashboard/blob/main/README.md"
click node_n3 "https://github.com/bhattkaushal/olympics-dashboard/blob/main/Olympics Dashboard.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_n1,node_n2 toneBlue
class node_n3,node_n4,node_n5,node_n6,node_n7,node_n8,node_n9,node_n10,node_n11 toneAmber
class node_n12,node_n13,node_n14,node_n15 toneMint
class node_n16 toneRose
```

## Components

### Input & Docs

Repository-facing files and external Olympic source data feeding the report

- **Olympics data**: source dataset · Historical athlete, event, nation, medal, sport, and edition data imported into the report
- [README](https://github.com/bhattkaushal/olympics-dashboard/blob/main/README.md): documentation · Repository notes describing the dashboard purpose and data/modeling intent · `README.md`

### Power BI Desktop

Embedded import, transformation, modeling, and report authoring inside the PBIX

- [PBIX artifact](https://github.com/bhattkaushal/olympics-dashboard/blob/HEAD/Olympics%20Dashboard.pbix): power bi file · Single self-contained Power BI report containing data prep, model, measures, and visuals · `Olympics Dashboard.pbix`
- **Import layer**: data ingestion · Power BI import boundary that brings Olympic data into the PBIX
- **Power Query**: etl transform · Power Query Editor boundary for cleaning, formatting, deduping, and merging source tables
- **Data cleanup**: prep step · Null removal, duplicate handling, and field normalization before modeling
- **Table merges**: prep step · Combines relevant source tables into analytical shapes for the model
- **Semantic model**: analysis model · Analytical backbone relating athletes, events, nations, medals, sports, genders, and editions
- **Relationships**: model links · Star-like joins and referential structure supporting cross-filtering and aggregation
- **Measures**: dax metrics · Calculated totals, rankings, and trend metrics used by the report
- **Calculated fields**: model calc · Calculated columns and derived attributes for slicing and categorization

### Report & Interactions

Interactive pages, filters, and visuals exposed to consumers

- **Report pages**: dashboard pages · Multi-page interactive report surfaces assembled in Power BI
- **Slicers**: interaction filters · Year, country, sport, and gender filters driving cross-filtering
- **Trend charts**: visuals · Bar, line, and stacked charts for comparison and historical trends
- **Map visual**: geo visual · Geographic display using Google Maps or another custom map visual

### Publish & Consumption

Hosted Power BI Service distribution boundary

- **Power BI Service**: published report · Hosted sharing and browser-based consumption layer after publish

## Connections

- Olympics data → Import layer: imported by · Source Olympic data is loaded into the Power BI report
- README → PBIX artifact: documents · Repository documentation describes the dashboard and data intent
- PBIX artifact → Import layer: contains · The PBIX encapsulates the import boundary
- Import layer → Power Query: routes to · Imported data is shaped in Power Query
- Power Query → Data cleanup: cleans · Nulls, duplicates, and formatting issues are handled here
- Power Query → Table merges: merges · Relevant tables are combined for analysis
- Data cleanup → Semantic model: feeds · Cleansed data becomes model-ready tables
- Table merges → Semantic model: feeds · Merged tables populate the analytical model
- Semantic model → Relationships: relates · Entity tables are connected through analytical relationships
- Semantic model → Measures: computes · Measures are defined against the semantic model
- Semantic model → Calculated fields: derives · Calculated fields are created from modeled data
- Relationships → Report pages: supports · Relationships enable report-wide filtering and aggregation
- Measures → Trend charts: drives · Metrics power the comparison and trend visuals
- Calculated fields → Slicers: enables · Derived fields support interactive slicing and grouping
- Report pages → Slicers: includes · Interactive slicers and filters are part of the report UI
- Report pages → Trend charts: renders · Primary charts visualize medal and participation patterns
- Report pages → Map visual: renders · Map visual provides geographic analysis
- Report pages → Power BI Service: published to · Finished report is shared through Power BI Service
- PBIX artifact → Power BI Service: deploys to · The PBIX is the authored artifact published for consumption
