Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Siddhesh_Singh
Regular Visitor

Get Specific Visual from PowerBI Report

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

 

 

1 ACCEPTED SOLUTION
v-venuppu
Community Support
Community Support

Hi @Siddhesh_Singh 

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.

 

 

View solution in original post

1 REPLY 1
v-venuppu
Community Support
Community Support

Hi @Siddhesh_Singh 

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.

 

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.