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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Handling events for Embed iFrame not working

Hi,

 

I am currently in a testing phase where I am using the Microsoft Power BI Embedded Playground to test the possibility of handling events for when the users selects an element in the report.

 

Using the "Sample Dashboard" option I have successfully obtained my test file in the Playground environment, however when using the dataSelected event handler like: 

dashboard.on("dataSelected",(event)=> {console.log(event)})
This doesn't work for the dashboard example but works perfectly fine for the reports. Could someone explain if there is a way to create events for when the data is selected for Dashboards. 
 
I have also tried the option of calling my EmbedURL from the Sample Report section, however I get a message of "To view this report, ask the author for access", and an option to Request Access which just redirects me to the Powerbi Website. Also I am the author of this report so the message does not make sense.
 
Would really appreciate if someone coudld explain to me what exactly is happening. Why in the first instance I am unable handle data selected events for dashboards & tiles and why I can't use my url within the Sample Report section.
 
Thanks.

 

 
 
0 REPLIES 0

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.