Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Data scraping from published Power BI visual

How to import data in any programming way from published specific Power BI visual to another PBI report or SQL Server table or just scrap it to local drive? I would like to achieve the same effect as by clicking on three dots ... in the right upper corner of published PBI visual > export data > Save as to local drive. enter image description here

This gets me the whole table of data I need without looking at the complexity how the visual was produced by someone else (i.e. joining many tables on unknown keys). Whatever the pros and cons, I want to get data from the external report of PBI visual, not from Power BI datasets nor from any other primery source of external report.

Ideally, I would like to plug to the visual of external report as a source in my Power BI report. If that is not possible, would there be any way using R to open the PBI external report, and export data from specific visual to R data.frame? If not, maybe it could be done in Python or any other program designed for data scraping?

like image 626
Przemyslaw Remin Avatar asked Aug 29 '18 14:08

Przemyslaw Remin


People also ask

Can you scrape data from Power BI?

Scraping website data can be done easily using Power Query in Excel or by using Power BI. Both these tools have the ability to scrape tabular data from a website.

How do I extract data from Power BI automatically?

You can create a Power Automate flow to export visual data automatically by clicking the flow button. If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Are published Power BI reports public?

The following message is displayed: You are about to create an embed code for this report. Once published, anyone on the Internet will be able to access the report and the data it contains, and Microsoft may display the report on a public website or a public gallery.

Can you publish Power BI reports to the Web?

With the Power BI Publish to web option, you can easily embed interactive Power BI content in blog posts, websites, emails, or social media. You can also easily edit, update, refresh, or stop sharing your published visuals.


1 Answers

I would try the exportData method from the JavaScript library for embedding Power BI:

https://github.com/microsoft/PowerBI-JavaScript/wiki/Export-Data

Your screenshot implies that you are accessing the report through the Power BI web service app.powerbi.com. Once you have opened the report using that portal, the menu option Share / Embed report / Website or portal will give you the secure token you need to get started.

like image 73
Mike Honey Avatar answered Sep 24 '22 09:09

Mike Honey