[英]Power Query: Get Data from an online Excel workbook (OneDrive, SharePoint)
I've asked this before, and I think I got some comments on the question not being specific/researched enough (I'm new here,) So I'm posting again.我以前问过这个问题,我想我对这个问题的一些评论不够具体/研究得不够(我是新来的)所以我再次发帖。 with a bit more research: Apologies if there is still anything missing:
进行更多研究:如果仍然缺少任何内容,请致歉:
I need an Excel workbook to get data from another Excel workbook that lives on OneDrive.我需要一个 Excel 工作簿来从 OneDrive 上的另一个 Excel 工作簿获取数据。 I want to share the mirror workbook with other coworkers so they can reference it.
我想与其他同事共享镜像工作簿,以便他们可以参考。
As I have it now, on my OneDrive folder in my computer I created the mirror workbook and got data from the master workbook (also in my OneDrive folder).正如我现在所拥有的,在我计算机的 OneDrive 文件夹中,我创建了镜像工作簿并从主工作簿(也在我的 OneDrive 文件夹中)获取数据。 Lastly, I have shared the mirror workbook though OneDrive with a coworker.
最后,我通过 OneDrive 与同事共享了镜像工作簿。 However, when I test opening the workbook from the coworker's computer, the workbook is still referencing the file path as if it were in my computer where I created the query and the workbook files.
但是,当我测试从同事的计算机打开工作簿时,工作簿仍在引用文件路径,就好像它在我创建查询和工作簿文件的计算机中一样。
As I understand it, instead of a file path, the workbooks needs a URL to reference the master workbook that lives in OneDrive (which I don't want to share).据我了解,工作簿需要 URL 来引用 OneDrive 中的主工作簿(我不想分享),而不是文件路径。
I've tried generating different share links from the OneDrive web portal but nothing seems to access.我尝试从 OneDrive web 门户网站生成不同的共享链接,但似乎没有任何访问权限。 I get access denied messages.
我收到拒绝访问的消息。
A bit of background, everyone has their own 365 account.有点背景,每个人都有自己的365账号。 And I am doing everything from the app.
我正在通过应用程序做所有事情。 Not using the browser version of Excel a ay point.
没有使用浏览器版本的Excel ay点。
I've done SharePoint before using the SharePoint folder data connector.在使用SharePoint 文件夹数据连接器之前,我已经完成了 SharePoint。 To do this, select that connector option, paste in the site URL (eg https://company.sharepoint.com/sites/GroupName/ ), and use Microsoft account as the authentication method.
To do this, select that connector option, paste in the site URL (eg https://company.sharepoint.com/sites/GroupName/ ), and use Microsoft account as the authentication method.
Example M query:示例 M 查询:
let
Source = SharePoint.Files("https://company.sharepoint.com/sites/GroupName/", [ApiVersion = 15]),
#"Excel File Name" = Source{[Name="Excel File Name.xlsx",#"Folder Path"="https://company.sharepoint.com/sites/GroupName/Shared Documents/General/"]}[Content],
#"Imported Excel" = Excel.Workbook(#"Excel File Name"),
#"Sheet Name_Sheet" = #"Imported Excel"{[Item="Sheet Name",Kind="Sheet"]}[Data]
in
#"Sheet Name_Sheet"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.