# pottarajesh/hr-analytics-dashboard architecture

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

- Interactive diagram: https://gitdiagram.com/pottarajesh/hr-analytics-dashboard
- Repository: https://github.com/pottarajesh/hr-analytics-dashboard

## Overview

#### Purpose and Entry Point

This repository contains a Power BI HR analytics artifact for analyzing workforce composition and employee attrition. The primary entry point is the Power BI report file: `HR_ANALYTICS_DASHBOARD.pbix`.

#### Data Source Boundary

The report is backed by a local CSV dataset: `HR_Analytics.csv`. This file is the repository’s raw HR data boundary; it likely provides employee attributes used for workforce and attrition analysis, such as demographics, compensation, tenure, education, and job role.

#### Power BI Semantic Model

`HR_ANALYTICS_DASHBOARD.pbix` contains the report’s Power Query ingestion logic, data model, calculated columns/measures, and visual layout. DAX is the primary calculation layer for metrics including employee totals, attrition counts/rates, average age, average salary, and average years at the company.

#### Dashboard Analysis Areas

The report organizes the HR data into attrition and workforce analysis views, including:
- Overall employee and attrition KPIs.
- Attrition segmented by education, age group, and job role.
- Attrition segmented by salary slab and years at company.

These analyses are implemented within `HR_ANALYTICS_DASHBOARD.pbix` and consume fields sourced from `HR_Analytics.csv`.

#### Primary Data and Control Flow

1. Power BI opens `HR_ANALYTICS_DASHBOARD.pbix`.
2. The report imports or refreshes data from `HR_Analytics.csv`.
3. Power Query/model transformations prepare the HR dataset.
4. DAX measures aggregate employee, attrition, compensation, age, and tenure metrics.
5. Power BI visuals filter and present those measures across workforce dimensions.

#### Runtime and Infrastructure

The material runtime is Power BI Desktop or the Power BI Service after publishing. No application server, database, API, or deployment infrastructure is represented in the repository. Refresh behavior depends on the CSV source path/configuration embedded in `HR_ANALYTICS_DASHBOARD.pbix`.

Main entry points: [`HR_ANALYTICS_DASHBOARD.pbix`](https://github.com/pottarajesh/hr-analytics-dashboard/blob/main/HR_ANALYTICS_DASHBOARD.pbix) (HR Semantic Model), [`HR_Analytics.csv`](https://github.com/pottarajesh/hr-analytics-dashboard/blob/main/HR_Analytics.csv) (HR Analytics CSV)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_source["Data Source"]
  node_csv["HR Analytics CSV<br/>raw HR dataset<br/>[HR_Analytics.csv]"]
end

subgraph group_powerbi["Power BI Report"]
  node_report["HR Analytics Dashboard<br/>Power BI report"]
  node_power_query["Power Query Ingestion<br/>query transformation"]
  node_semantic_model[("HR Semantic Model<br/>Power BI data model")]
  node_dax_metrics["DAX Metrics<br/>calculation layer"]
end

subgraph group_analysis["Dashboard Analysis"]
  node_kpis["Workforce KPIs<br/>dashboard view"]
  node_education_age["Education &amp; Age Attrition<br/>dashboard view"]
  node_job_role["Job Role Attrition<br/>dashboard view"]
  node_salary_tenure["Salary &amp; Tenure Attrition<br/>dashboard view"]
end

node_powerbi_runtime{{"Power BI Desktop / Service<br/>report runtime"}}

node_powerbi_runtime -->|"opens / renders"| node_report
node_report -->|"contains"| node_power_query
node_csv -->|"imports / refreshes"| node_power_query
node_power_query -->|"prepares data"| node_semantic_model
node_semantic_model -->|"provides model data"| node_dax_metrics
node_dax_metrics -->|"drives"| node_kpis
node_dax_metrics -->|"drives"| node_education_age
node_dax_metrics -->|"drives"| node_job_role
node_dax_metrics -->|"drives"| node_salary_tenure
node_semantic_model -->|"supplies dimensions"| node_kpis
node_semantic_model -->|"supplies dimensions"| node_education_age
node_semantic_model -->|"supplies dimensions"| node_job_role
node_semantic_model -->|"supplies dimensions"| node_salary_tenure

click node_csv "https://github.com/pottarajesh/hr-analytics-dashboard/blob/main/HR_Analytics.csv"
click node_report "https://github.com/pottarajesh/hr-analytics-dashboard/blob/main/HR_ANALYTICS_DASHBOARD.pbix"
click node_power_query "https://github.com/pottarajesh/hr-analytics-dashboard/blob/main/HR_ANALYTICS_DASHBOARD.pbix"
click node_semantic_model "https://github.com/pottarajesh/hr-analytics-dashboard/blob/main/HR_ANALYTICS_DASHBOARD.pbix"
click node_dax_metrics "https://github.com/pottarajesh/hr-analytics-dashboard/blob/main/HR_ANALYTICS_DASHBOARD.pbix"
click node_kpis "https://github.com/pottarajesh/hr-analytics-dashboard/blob/main/HR_ANALYTICS_DASHBOARD.pbix"
click node_education_age "https://github.com/pottarajesh/hr-analytics-dashboard/blob/main/HR_ANALYTICS_DASHBOARD.pbix"
click node_job_role "https://github.com/pottarajesh/hr-analytics-dashboard/blob/main/HR_ANALYTICS_DASHBOARD.pbix"
click node_salary_tenure "https://github.com/pottarajesh/hr-analytics-dashboard/blob/main/HR_ANALYTICS_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_csv toneBlue
class node_report,node_power_query,node_semantic_model,node_dax_metrics toneAmber
class node_kpis,node_education_age,node_job_role,node_salary_tenure toneMint
class node_powerbi_runtime toneNeutral
```

## Components

### Data Source

- [HR Analytics CSV](https://github.com/pottarajesh/hr-analytics-dashboard/blob/main/HR_Analytics.csv): raw HR dataset · Employee demographics, compensation, tenure, education, and role data. · `HR_Analytics.csv`

### Power BI Report

- [HR Analytics Dashboard](https://github.com/pottarajesh/hr-analytics-dashboard/blob/main/HR_ANALYTICS_DASHBOARD.pbix): Power BI report · Primary report artifact and entry point. · `HR_ANALYTICS_DASHBOARD.pbix`
- [Power Query Ingestion](https://github.com/pottarajesh/hr-analytics-dashboard/blob/main/HR_ANALYTICS_DASHBOARD.pbix): query transformation · Imports and prepares the CSV dataset. · `HR_ANALYTICS_DASHBOARD.pbix`
- [HR Semantic Model](https://github.com/pottarajesh/hr-analytics-dashboard/blob/main/HR_ANALYTICS_DASHBOARD.pbix): Power BI data model · Prepared workforce data and reporting dimensions. · `HR_ANALYTICS_DASHBOARD.pbix`
- [DAX Metrics](https://github.com/pottarajesh/hr-analytics-dashboard/blob/main/HR_ANALYTICS_DASHBOARD.pbix): calculation layer · Employee, attrition, age, salary, and tenure measures. · `HR_ANALYTICS_DASHBOARD.pbix`

### Dashboard Analysis

- [Workforce KPIs](https://github.com/pottarajesh/hr-analytics-dashboard/blob/main/HR_ANALYTICS_DASHBOARD.pbix): dashboard view · Overall employee and attrition totals and rates. · `HR_ANALYTICS_DASHBOARD.pbix`
- [Education & Age Attrition](https://github.com/pottarajesh/hr-analytics-dashboard/blob/main/HR_ANALYTICS_DASHBOARD.pbix): dashboard view · Attrition segmented by education and age group. · `HR_ANALYTICS_DASHBOARD.pbix`
- [Job Role Attrition](https://github.com/pottarajesh/hr-analytics-dashboard/blob/main/HR_ANALYTICS_DASHBOARD.pbix): dashboard view · Attrition segmented by job role. · `HR_ANALYTICS_DASHBOARD.pbix`
- [Salary & Tenure Attrition](https://github.com/pottarajesh/hr-analytics-dashboard/blob/main/HR_ANALYTICS_DASHBOARD.pbix): dashboard view · Attrition segmented by salary slab and years at company. · `HR_ANALYTICS_DASHBOARD.pbix`

### Other components

- **Power BI Desktop / Service**: report runtime · Opens, refreshes, and renders the report.

## Connections

- Power BI Desktop / Service → HR Analytics Dashboard: opens / renders
- HR Analytics Dashboard → Power Query Ingestion: contains
- HR Analytics CSV → Power Query Ingestion: imports / refreshes
- Power Query Ingestion → HR Semantic Model: prepares data
- HR Semantic Model → DAX Metrics: provides model data
- DAX Metrics → Workforce KPIs: drives
- DAX Metrics → Education & Age Attrition: drives
- DAX Metrics → Job Role Attrition: drives
- DAX Metrics → Salary & Tenure Attrition: drives
- HR Semantic Model → Workforce KPIs: supplies dimensions
- HR Semantic Model → Education & Age Attrition: supplies dimensions
- HR Semantic Model → Job Role Attrition: supplies dimensions
- HR Semantic Model → Salary & Tenure Attrition: supplies dimensions
