Forum Discussion
Get Specific Visual from PowerBI Report
- 1 year ago
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:
- Focus/highlight a visual
- Use bookmarks to isolate visuals
- Or design a page with only that visual
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:
- Focus/highlight a visual
- Use bookmarks to isolate visuals
- Or design a page with only that visual
If this post helps, then please consider Accepting as solution to help the other members find it more quickly.
Thank you.