如何连接谷歌表与power bi?

Aza*_*eem 5 google-sheets powerbi powerbi-datasource

我正在尝试使用R Studio连接google sheet和power bi,在stetnie locke上有一个关于youtube的视频,但这只是一个简短的视频,并没有完全帮助.任何一个可以帮助正确和完全的人.

Fox*_* Ng 9

如果您不仅限于R Studio,还可以通过另一种方式从Power BI访问Google表格数据:

样本数据: 样品

  1. 获取Google表格的可共享链接(至少允许Anyone with the link can view):

可分享的链接

  1. 修改可共享链接并添加以下部分:

    从:

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

    至:

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

例如

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 /出口?格式= XLSX&ID = 1ohAz8SD6viEGIrcor-JC-vCt2yRbgY1c-7Uflv-_hrA

  1. 在Power BI中创建一个空白查询,并获取如下源:

    在源代码中输入Source = Excel.Workbook(Web.Contents("the-link-in-step-2"),null,true)

码

表格1

  1. 如果您钻入表格单元格,您应该能够看到数据并从那里开始工作.

表2


小智 5

一种更简单的方法:转到获取数据,搜索Web。选择网站 选择网站

在网址上。

->修改网址。

从:

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

至:

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

糊。

贴上连结

还有你的床单。

选择工作表