Embed Single Power BI Page Into Website
February 12, 2019It’s not broadcasted by Microsoft, but it is possible to embed a single Power BI page into a website by extending the generated iframe embed you can get from the Power BI publisher.
Potential benefits:
- Lay a Power BI visual inline with other reporting elements (html bullets, lists, etc).
- Focus reader attention to a specific page in your report.
When you’re in the Power BI publisher online, you can see in the image above how the browser web-path corresponds to the elements in the embed path. I’ve color coded the corresponding elements in the path. Naturally I blurred out some of the characters for security reasons.
The most important thing to know is that Power BI encodes each page of the report as ReportSection (the first page created), or ReportSectionXXXXXXX (where XXXXXXX is a unique hash). Setting your embed to the appropriate ReportSection will get it to load starting at that page. The next important thing is to hide the tabbed navigation bar, which is accomplished by appending navContentPaneEnabled=false to the embed.
Unfortunately, it does not appear possible to embed a single visual element (i.e. a datacard, slicer, etc.); you can only embed a whole page. If anyone figures out a way to embed a single element, please drop a comment, would be appreciated!