Embed Power Bi
Content Type: Widget
Categories: User Interface,Visualization
Overview
Open source, React-client widget without the authentication and integration logic
Documentation
Typical usage scenario
Mendix apps that show Power Bi Dashboards
Features and limitations
Show dashboard, reports and tables
Only the user interface part. The tokens and report id should be provided with user logic.
Configuration
- Create an entity with ReportId, EmbedToken and AccessToken attributes (String)
- Retrieve the data (see Links)
- Place the widget on a context
- Set the attribute with the ID of the report
- Set the attribute with EmbedToken
- Set the CSS normally if the class of the widget is powerbiembed the css should contain .powerbiembed div { height: 80vh; } . This should set the height to 80% of the view height;
Retrieve the Id, EmbedToken and AccessToken
- Get a PowerBi UserName and Password and optionally a Clientsecret.
- The official documetation is at microsoft https://learn.microsoft.com/en-us/javascript/api/overview/powerbi/embedded-analytics-client-api?source=recommendations
- https://learn.microsoft.com/en-us/rest/api/power-bi/embed-token/generate-token
- https://medium.com/globant/how-to-embed-a-power-bi-report-in-react-f27e975e0a
- https://www.kieferconsulting.com/2021/11/01/how-to-embed-power-bi-content-in-a-react-application
- https://www.mayainsights.com/guides/how-to-embed-power-bi-report-in-web-application (Leave out the code)
Known bugs
Frequently Asked Questions [optional]