Forum Discussion
Export data from a published report
Have you enabled the Get Data API? Please check link below about Get Data API.
https://azure.microsoft.com/en-us/updates/power-bi-embedded-get-visual-data/
https://github.com/Microsoft/PowerBI-JavaScript/wiki/Export-Data
Also note the limitation of export data:
-
Power BI only supports export in visuals that use basic aggregates. Export is not available for visuals using model or report measures.
-
Custom visuals, and R visuals, are not currently supported.
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for the reply. Can you provide a better example on the export API. I saw the code sample on the github but how do yo place it whithin the context? or how do you bind it to a button as an example to download a data. Also, on the giuthub page the link to "export data documentation" gives you 404.
- v-yuta-msft7 years agoCommunity Support
You can try the showcase and sample code in this playground. Refer to: https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html#.
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous7 years agoNot applicable
Thank you v-yuta-msft for this info. Similar to the OP, I'm a little lost on how to integrate your answer into a dashboard. I've built a number of dashboards and have only recently started embedding them into a sharepoint page. The code you are linking to seems meant for somewhere in the code I'm using to embed the visual in the sharepoint page. Is that right? I am not very familiar at all with web design and thus other than embedding dashboards could use some guidance in adding functionality. If there's a resource for learning more about embedding Power BI visuals into websites, I'd happily try to tackle this more myself.
- v-yuta-msft7 years agoCommunity Support
Anonymous,
You don't need any hard code on embedding report to sharepoint online page, you can refer to steps in link below:
https://docs.microsoft.com/en-us/power-bi/service-embed-report-spo.
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.