简体   繁体   English

Power Query:从在线 Excel 工作簿(OneDrive、SharePoint)获取数据

[英]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.

相关问题 使用来自 SQL Azure 数据库的数据在线刷新 Excel 工作簿 - Refresh Excel workbook with data from SQL Azure Database in SharePoint Online Power Query / Power BI 从另一个 Excel 工作簿中查找数据 - Power Query / Power BI get look for data from another excel workbook 获取当前工作簿路径 - Excel Power Query - Get Current Workbook Path - Excel Power Query 使用 PHP 从在线 Excel(例如 OneDrive)中查询 - Query from an Online Excel (Eg;OneDrive) using PHP 共享点撤消Excel工作簿中的数据连接 - sharepoint revoke data connections from an excel workbook 使用 Excel Power Query 到 OneDrive/Sharepoint 中共享的 .XLSX 时出现 404 文件未找到错误 - 404 File Not Found error using Excel Power Query to .XLSX shared in OneDrive/Sharepoint Excel 2016 Power Query-从Oracle数据字典获取数据 - Excel 2016 Power Query - Get data from Oracle data dictionary Excel,Power Query:根据日期从源工作簿中提取列 - Excel, Power Query: Pull columns from source workbook based on date Excel Power Query - Dynamics 365 Online - 从另一个表中获取名称而不合并 - Excel Power Query - Dynamics 365 Online - get names from another table without Merge Excel 来自位于 OneDrive 上的 Excel 工作簿的查询 来自不同用户 - Excel Queries from Excel Workbook located on OneDrive From Different Users
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM