# jbaart37/copilot-credits-dashboard architecture

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

- Interactive diagram: https://gitdiagram.com/jbaart37/copilot-credits-dashboard
- Repository: https://github.com/jbaart37/copilot-credits-dashboard

## Overview

This is a Power BI report template, not an application service: users open the .pbit in Power BI Desktop, provide environment URLs, and analyze combined Copilot-credit events and related Dataverse data. The report covers source and model breakdowns, time trends, forecasting, and interactive drill-down. The repository provides no source excerpts, so internal implementation and query-level call relationships cannot be verified; edges below reflect only README-documented data flow and capabilities.

Main entry points: [`Copilot AI Credits v2.pbit`](https://github.com/jbaart37/copilot-credits-dashboard/blob/main/Copilot%20AI%20Credits%20v2.pbit) (Combined AI events)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_connections["Connections"]
  node_environments[("Dataverse environments")]
  node_template["Copilot credits template"]
end

subgraph group_data["Data model"]
  node_combined_events[("Combined AI events")]
  node_related_data[("Related AI and user data")]
end

subgraph group_analysis["Consumption analysis"]
  node_credit_metrics["Credit and model metrics"]
  node_source_analysis["Source breakdown"]
  node_time_forecast["Trends and forecasting"]
end

subgraph group_report["Report experience"]
  node_interactive_filters["Interactive drill-down"]
  node_summary_page["Executive summary"]
  node_consumption_page["Consumption analysis page"]
  node_capacity_page["Cost and capacity page"]
end

node_user(("Report user"))
node_desktop["Power BI Desktop"]

node_user -->|"opens report"| node_desktop
node_desktop -->|"prompts for URLs"| node_template
node_template -->|"connects to"| node_environments
node_environments -->|"aggregate events"| node_combined_events
node_environments -->|"combine related tables"| node_related_data
node_combined_events -->|"provides consumption"| node_credit_metrics
node_related_data -->|"provides model context"| node_credit_metrics
node_combined_events -->|"breaks down sources"| node_source_analysis
node_combined_events -->|"feeds time analysis"| node_time_forecast
node_credit_metrics -->|"supports filtering"| node_interactive_filters
node_source_analysis -->|"visualizes breakdown"| node_summary_page
node_time_forecast -->|"visualizes trends"| node_summary_page
node_interactive_filters -->|"enables drill-down"| node_consumption_page
node_source_analysis -->|"visualizes consumption"| node_consumption_page
node_time_forecast -->|"shows projections"| node_capacity_page
node_user -->|"selects dimensions"| node_interactive_filters

click node_template "https://github.com/jbaart37/copilot-credits-dashboard/blob/main/Copilot%20AI%20Credits%20v2.pbit"
click node_combined_events "https://github.com/jbaart37/copilot-credits-dashboard/blob/main/Copilot%20AI%20Credits%20v2.pbit"
click node_related_data "https://github.com/jbaart37/copilot-credits-dashboard/blob/main/Copilot%20AI%20Credits%20v2.pbit"
click node_credit_metrics "https://github.com/jbaart37/copilot-credits-dashboard/blob/main/Copilot%20AI%20Credits%20v2.pbit"
click node_source_analysis "https://github.com/jbaart37/copilot-credits-dashboard/blob/main/Copilot%20AI%20Credits%20v2.pbit"
click node_time_forecast "https://github.com/jbaart37/copilot-credits-dashboard/blob/main/Copilot%20AI%20Credits%20v2.pbit"
click node_interactive_filters "https://github.com/jbaart37/copilot-credits-dashboard/blob/main/Copilot%20AI%20Credits%20v2.pbit"
click node_summary_page "https://github.com/jbaart37/copilot-credits-dashboard/blob/main/Copilot%20AI%20Credits%20v2.pbit"
click node_consumption_page "https://github.com/jbaart37/copilot-credits-dashboard/blob/main/Copilot%20AI%20Credits%20v2.pbit"
click node_capacity_page "https://github.com/jbaart37/copilot-credits-dashboard/blob/main/Copilot%20AI%20Credits%20v2.pbit"

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_environments,node_template,node_user toneBlue
class node_combined_events,node_related_data toneAmber
class node_credit_metrics,node_source_analysis,node_time_forecast toneMint
class node_interactive_filters,node_summary_page,node_consumption_page,node_capacity_page toneRose
class node_desktop toneIndigo
```

## Components

### Connections

- **Dataverse environments**
- [Copilot credits template](https://github.com/jbaart37/copilot-credits-dashboard/blob/main/Copilot%20AI%20Credits%20v2.pbit): `Copilot AI Credits v2.pbit`

### Data model

- [Combined AI events](https://github.com/jbaart37/copilot-credits-dashboard/blob/main/Copilot%20AI%20Credits%20v2.pbit): `Copilot AI Credits v2.pbit`
- [Related AI and user data](https://github.com/jbaart37/copilot-credits-dashboard/blob/main/Copilot%20AI%20Credits%20v2.pbit): `Copilot AI Credits v2.pbit`

### Consumption analysis

- [Credit and model metrics](https://github.com/jbaart37/copilot-credits-dashboard/blob/main/Copilot%20AI%20Credits%20v2.pbit): `Copilot AI Credits v2.pbit`
- [Source breakdown](https://github.com/jbaart37/copilot-credits-dashboard/blob/main/Copilot%20AI%20Credits%20v2.pbit): `Copilot AI Credits v2.pbit`
- [Trends and forecasting](https://github.com/jbaart37/copilot-credits-dashboard/blob/main/Copilot%20AI%20Credits%20v2.pbit): `Copilot AI Credits v2.pbit`

### Report experience

- [Interactive drill-down](https://github.com/jbaart37/copilot-credits-dashboard/blob/main/Copilot%20AI%20Credits%20v2.pbit): `Copilot AI Credits v2.pbit`
- [Executive summary](https://github.com/jbaart37/copilot-credits-dashboard/blob/main/Copilot%20AI%20Credits%20v2.pbit): `Copilot AI Credits v2.pbit`
- [Consumption analysis page](https://github.com/jbaart37/copilot-credits-dashboard/blob/main/Copilot%20AI%20Credits%20v2.pbit): `Copilot AI Credits v2.pbit`
- [Cost and capacity page](https://github.com/jbaart37/copilot-credits-dashboard/blob/main/Copilot%20AI%20Credits%20v2.pbit): `Copilot AI Credits v2.pbit`

### Other components

- **Report user**
- **Power BI Desktop**

## Connections

- Report user → Power BI Desktop: opens report (evidence: `README.md`)
- Power BI Desktop → Copilot credits template: prompts for URLs (evidence: `README.md`)
- Copilot credits template → Dataverse environments: connects to (evidence: `README.md`)
- Dataverse environments → Combined AI events: aggregate events (evidence: `README.md`)
- Dataverse environments → Related AI and user data: combine related tables (evidence: `README.md`)
- Combined AI events → Credit and model metrics: provides consumption (evidence: `README.md`)
- Related AI and user data → Credit and model metrics: provides model context (evidence: `README.md`)
- Combined AI events → Source breakdown: breaks down sources (evidence: `README.md`)
- Combined AI events → Trends and forecasting: feeds time analysis (evidence: `README.md`)
- Credit and model metrics → Interactive drill-down: supports filtering (evidence: `README.md`)
- Source breakdown → Executive summary: visualizes breakdown (evidence: `README.md`)
- Trends and forecasting → Executive summary: visualizes trends (evidence: `README.md`)
- Interactive drill-down → Consumption analysis page: enables drill-down (evidence: `README.md`)
- Source breakdown → Consumption analysis page: visualizes consumption (evidence: `README.md`)
- Trends and forecasting → Cost and capacity page: shows projections (evidence: `README.md`)
- Report user → Interactive drill-down: selects dimensions (evidence: `README.md`)
