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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

How to pass data from PowerBI to embeded window

We have some PowerBI reports embeded in an angular application. Whenever user clicks a record in PowerBI report, I need to pass the clicked record data from PowerBI to angular app.

 

Is it possible to pass data using window.postMessage? Please suggest if there are any other ways to pass data from powerBI iframe to parent window, so that the angular application listen for the message and trigger the callback.

2 REPLIES 2
Anonymous
Not applicable

I am using the embed method of powerbi-client. I want to pass data from powerBI to the angular app. please find my embedding code below.

 

let pbiSvc = new pbi.service.Service(pbi.factories.hpmFactory, pbi.factories.wpmpFactory, pbi.factories.routerFactory);
 let pbiEmbed = pbiSvc.embed(domElem, config);
lbendlin
Super User
Super User

Are you trying to use a basic iframe?  You can only interact with the Power BI content if you implement the complete Power BI Embedded (app owns data, I guess) experience.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors