Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hey guys,
I have a requirement for extracting a visual from Power BI Report which I need to embed in a web page,
we have tried using Iframe links but we are not able to target specific visuals through Iframe,
We have also tried using javascript power bi client library(ps : here's the link to the same Page class | Microsoft Learn) but we are not able to get authorised correctly even with service principal Entra Token we use for power BI Rest API.
Please let me know if something's possible in this regards
Regards
Solved! Go to Solution.
Thank you for reaching out to Microsoft Fabric Community.
Yes, you can embed a specific visual from a Power BI report into a webpage using the Power BI JavaScript Client SDK. Here's the general approach:
Use Power BI JavaScript SDK - It lets you embed and control reports dynamically in a web page.
Target a Specific Visual - After embedding the report, you can access the visuals on a specific page via getPages() --> getVisuals() and programmatically focus or interact with a specific visual by its name or title.
Use Bookmarks (Optional) – If you want to show only one visual cleanly, create a bookmark in Power BI Desktop that hides everything else and apply it via SDK.
Authentication - Ensure correct token generation:
Use Service Principal with proper Power BI workspace access (Premium required)
Here are few Limitations:
1.Power BI doesn’t natively allow embedding a single visual directly. Instead, you embed the whole report and either:
If this post helps, then please consider Accepting as solution to help the other members find it more quickly.
Thank you.
Thank you for reaching out to Microsoft Fabric Community.
Yes, you can embed a specific visual from a Power BI report into a webpage using the Power BI JavaScript Client SDK. Here's the general approach:
Use Power BI JavaScript SDK - It lets you embed and control reports dynamically in a web page.
Target a Specific Visual - After embedding the report, you can access the visuals on a specific page via getPages() --> getVisuals() and programmatically focus or interact with a specific visual by its name or title.
Use Bookmarks (Optional) – If you want to show only one visual cleanly, create a bookmark in Power BI Desktop that hides everything else and apply it via SDK.
Authentication - Ensure correct token generation:
Use Service Principal with proper Power BI workspace access (Premium required)
Here are few Limitations:
1.Power BI doesn’t natively allow embedding a single visual directly. Instead, you embed the whole report and either:
If this post helps, then please consider Accepting as solution to help the other members find it more quickly.
Thank you.
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 8 | |
| 8 | |
| 4 | |
| 3 | |
| 2 |