Skip to content

Commit fd91c60

Browse files
authored
Update README.md
Add details for modifying the data source
1 parent 8d431a9 commit fd91c60

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,32 @@
11
# Using Power BI with GitHub Copilot Metrics API
2+
With the release of the [GitHub Copilot Metrics API](https://github.blog/changelog/2024-04-23-github-copilot-metrics-api-now-available-in-public-beta/) many teams are looking to leverage this data to help monitors usahe against their KPIs. For many, the Copilot Metrics Viewer ([github-copilot-resources/copilot-metrics-viewer](https://github.com/github-copilot-resources/copilot-metrics-viewer)) might be a great option.
3+
4+
However, many organizations that we work with already have established Power BI teams. If your organizations is **already using Power BI read on!**
5+
6+
Located in the `./samples` directory you'll find sample JSON and PBIX files used to create the dashboar below.
27

38
![Image of a Power BI dashboard with GitHuub Copilot Metrics API data displayed.](https://github.com/jasonmoodie/pbi-4-ghcopilot/blob/main/assets/Sample_PBI.png)
9+
10+
## Modify the data source
11+
> Note: This example provided a proof of concept for loading metrics data and requires an exported JSON file. If you have access to the REST API you can configure the Source accordingly.
12+
13+
1. Download and open the sample `GitHub Copilot - Telemetry Sample (DM).pbix` file
14+
2. The file contains three data sources on the right hand side.
15+
16+
| Name | Description |
17+
| :-------------------- | :----------------------------------------------------- |
18+
| GH Copilot - Details | Detailed breakdown of metrics data by language and editor. |
19+
| GH Copilot - Summary | Daily summary of metrics data. |
20+
| Last Refresh | Used to display the data time of data refresh on the top-right corner of the dashboard. |
21+
22+
3. Open the Power Query Editor by right clicking the `GH Copilot - Details` and selecting **Edit query**.
23+
4. Modify the **Source** step by click the setting icon, selecting your JSON file and clicking **OK**.
24+
![Image of a data source selector in Power Query Editor.](https://github.com/jasonmoodie/pbi-4-ghcopilot/blob/main/assets/Modify_JSON_source.png)
25+
5. Repeat steps 3 and 4 for the `GH Copilot - Summary` Source.
26+
6. Click **Close and Apply** in the top-left of the Power Query Editor.
27+
7. On the Report View page click **Refresh** to load the new data into your dashboard.
28+
29+
30+
31+
32+

0 commit comments

Comments
 (0)