This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Team,
Can we get GetData option in PowerBI Embed?
If possible pls share the code or steps.
Thanks in advance,
Ram
Hi, @ramesh_valluri
You can use the GetData function in Power BI Embedded. Use the JavaScript API to retrieve data from a report, visual object, or page. The following is an example of how to retrieve data from a visual object using this function.
// Get a reference to the embedded report HTML element
var embedContainer = $('#embedContainer');
// Get a reference to the embedded report
report = powerbi.get(embedContainer);
// Get the first page of the report
report.getPages()
.then(function (pages) {
// Retrieve the data for the first visual on the first page
return pages.getVisuals();
})
.then(function (visuals) {
return visuals.getData();
})
.then(function (data) {
// Log the data to the console
console.log(data);
});
Best Regards,
Yang
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 11 | |
| 11 | |
| 7 | |
| 6 | |
| 6 |
| User | Count |
|---|---|
| 34 | |
| 26 | |
| 22 | |
| 21 | |
| 21 |