Table of Contents:
Microsoft Power BI is a suite of business analytics tools that deliver insights throughout your organization.
This is an example of the powerbi-client API javascript embeded interface.
In order to make an API request to Microsoft PowerBI You will need the following basic information for your request (obtained from PowerBI as outline here):
Name | Desc | Required |
---|---|---|
Embed Token | The API Token that is ties the PowerBI Account to the request. | YES |
Embed URL | The URL we will be sending the request to, query params may change based on report type. | YES |
Dashboard ID | The ID of the dashbord we want. | Dependant on report type |
Report ID | The ID of the specific report we want. | Dependant on report type |
Group ID | The ID of the specific report group we want. | Dependant on report type |
Tile ID | The ID of the dashboard tile report we want. | Dependant on report type |
- Note: There may be more depending on what type of report you want.
Type | Desc | File | Required API Fields |
---|---|---|---|
Hard Coded | API Call values are hard coded. | hard-coded-example.html | Token, URL, Dashboard ID |
Form Input Dashboard | API Call values are poplulated from form inputs for a dashboard. | input-form-dashboard-example.html | Token, URL, Dashboard ID |
Form Input Report | API Call values are poplulated from form inputs for a specific report. | input-form-report-example.html | Token, URL, Report ID, Group ID |
microsoft-powerbi-javascript-example
├── .gitignore
├── README.md
├── hard-coded-example.html
├── input-form-dashboard-example.html
├── input-form-report-example.html
├── LICENSE
├── power-bi.js
└── power-bi.min.js
- Tree command can be installed using brew:
brew install tree
- File tree generated using command
tree -a -I '.git|node_modules|vendor|storage|tests'
- https://github.com/Microsoft/PowerBI-Developer-Samples
- https://microsoft.github.io/PowerBI-JavaScript/
- https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html#
- https://docs.microsoft.com/en-us/rest/api/power-bi/
- https://docs.microsoft.com/en-us/rest/api/power-bi/reports/getreport
- https://docs.microsoft.com/en-us/rest/api/power-bi/reports/getreports
- https://docs.microsoft.com/en-us/power-bi/developer/embedding-content
- https://www.youtube.com/watch?v=nfkVljh_9O4
- https://powerbi.microsoft.com/en-us/blog/intro-pbi-js-api/
This repository and all the code within it is licensed under the MIT license. Enjoy!