How to connect google sheet with power bi?

為{幸葍}努か 提交于 2021-02-06 09:12:27

问题


I am trying to connect google sheet with power bi using R Studio, there is a video on youtube by stephnie locke, but that is just a short video and dont help completely. any one there which can help properly and completely.


回答1:


If you're not limited to R Studio, there is another way to access Google Sheet data from Power BI:

Sample data:

  1. Get shareable link of the Google Sheet (Permission at least Anyone with the link can view):

  1. Modify the shareable link and add the following parts:

    From:

    https://docs.google.com/spreadsheets/d/google-sheet-guid/edit?usp=sharing

    To:

    https://docs.google.com/spreadsheets/d/google-sheet-guid/export?format=xlsx&id=google-sheet-guid

e.g.

https://docs.google.com/spreadsheets/d/1ohAz8SD6viEGIrcor-JC-vCt2yRbgY1c-7Uflv-_hrA/edit?usp=sharing -> https://docs.google.com/spreadsheets/d/1ohAz8SD6viEGIrcor-JC-vCt2yRbgY1c-7Uflv-_hrA/export?format=xlsx&id=1ohAz8SD6viEGIrcor-JC-vCt2yRbgY1c-7Uflv-_hrA

  1. Create a blank query in Power BI and get the source as below:

    let Source = Excel.Workbook(Web.Contents("the-link-in-step-2"), null, true) in Source

  1. If you drill into the Table cell you should be able to see the data and work from there.




回答2:


An easier way: Go to Get data, search Web. Select Web Select Web

on the URL.

-> Modify the URL.

From:

https://docs.google.com/spreadsheets/d/emphasized textgoogle-sheet-guid/edit?usp=sharing

To:

https://docs.google.com/spreadsheets/d/google-sheet-guid/export?format=xlsx&id=google-sheet-guid

Paste.

Paste link

And there is your sheet.

Select your sheet




回答3:


To build upon @Joseph A's perfect answer, if you would like to make it refreshable after publishing your report to the Power BI service from Desktop:

  1. Navigate to the workspace where the report is published (i.e. My Workspace)
  2. Click Datasets
  3. Under Actions, click the ellipses and choose Settings
  4. Expand Data source credentials and click Edit Credentials
  5. Change Authentication method to Basic
  6. Enter User Name and Password of Google Docs account where the file resides and click Sign In

Your report can now be refreshed and updated (manually or scheduled) to reflect changes in your Google Sheets doc!



来源:https://stackoverflow.com/questions/45945815/how-to-connect-google-sheet-with-power-bi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!