从电子表格的 连接 面板或 数据 工具栏,您可以将工作表作为数据源连接到 Wdata 表。当您从电子表格创建到表格的传出连接时,您可以将电子表格中的数据推送并刷新,以确保目标表格拥有最新数据。
将工作表连接到 Wdata 表
工作表的所有者可以将工作表连接为 <!-- another sheet or--> 的源,以便他们能够编辑该工作表。例如,如果您在工作表中管理维度数据(例如帐户层次结构映射),则可以创建传出连接,以使维度表的值保持最新。将工作表连接到表格时,其数据会作为连接的数据集显示在表格中,您可以从表格或电子表格中刷新该数据集。
提示: 您可以将一个工作表连接到多个目标位置,但每个表格只能连接一次。您还可以从表格中添加 工作表作为关联数据集
。- 在电子表格中,打开要连接到表格的工作表。
- 从 “连接 ”面板或 “数据 ”工具栏添加连接:
- 在 “连接 ”面板的 “传出 ”下,单击 “添加连接” 。
- 从 数据 工具栏中,单击 添加连接, 出站连接。
- 在 “连接 ”面板的 “传出 ”下,单击 “添加连接” 。
- 选择 将数据发送到 Wdata 表,然后单击 下一步:选择目标。
- 搜索并选择要连接的表,然后单击 下一步。
- 在 数据集名称中,输入表格中新连接数据集的名称。
- 将表格的列映射到工作表的列。
- 要包含组织跟踪的有关数据集的任何元数据(例如来源或版本),请选择要应用的标签和值。
- 点击 完成。
When you connect a sheet to a table, its data appears on the table as a connected dataset, which you can refresh from the table or spreadsheet. For example, if you manage dimensional data—such as account hierarchy mappings—in a sheet, you can create an outgoing connection to keep a dimension table up-to-date with its values.
Tip: You can also add a sheet as a connected dataset from the table.
To connect a sheet to a Wdata table as a connected dataset:
- In the spreadsheet, select the sheet to connect to the table.
-
Add the connection from the Connections panel
or Data toolbar:
-
From the Connections panel, under
Outgoing
,
click Add Connection,
Wdata Table
.
- From the Data toolbar, click Connection, Add Outgoing Connection , Wdata Table.
-
From the Connections panel, under
Outgoing
,
click Add Connection,
Wdata Table
.
- Search for and select the table to connect to, and click Next.
- In Dataset name, enter the name for the sheet's new connected dataset on the table.
- Map the table's columns to the sheet's.
- To include any metadata your organization tracks about the dataset, such as source or version, select the tags and values to apply.
- Click Finish.
When you connect a sheet to another sheet, the source sheet's data appears on the destination sheet as an incoming connection, which you can refresh from either spreadsheet.
Tip: You can also connect a sheet as a source for another sheet from the destination spreadsheet.
To connect a sheet as a data source for another sheet:
- In the spreadsheet with the data to use as a source, select the sheet to connect.
-
Add the connection from the Connections panel
or Data toolbar:
-
From the Connections panel, under
Outgoing
,
click Add Connection,
Spreadsheet
.
- From the Data toolbar, click Connection, Add Outgoing Connection , Spreadsheet.
-
From the Connections panel, under
Outgoing
,
click Add Connection,
Spreadsheet
.
- Search for and select the spreadsheet and sheet to push data to, and click Connect.
刷新出站连接
要使用最新数据更新工作表的连接表,请从 连接 面板或 数据 工具栏刷新其传出连接。您可以同时刷新多个连接。
注意:要刷新传出连接,您需要对工作表及其关联 的表格都拥有所有者或编辑者权限
。- 要刷新特定连接,请在 连接 面板的 传出下,单击其 刷新连接。
- 要刷新工作表的所有传出连接,请打开工作表,然后单击 更新、 共享更新从 数据 工具栏中单击。
过滤器连接
为方便使用Connections 面板,请单击筛选 ,然后选择要查看的连接:
- 要查看 电子表格中的所有连接,请选择 “整个 文档” 。
- 要仅查看当前工作表的连接,请选择 当前部分。
在工作表和表格之间创建新的连接
将工作表连接到表格后,可以在两者之间创建新的连接,以根据工作表的最新数据追加数据集。例如,如果您按年度滚动更新财务数据,则可以每年为基于每个周期的数据集创建一个新的连接。
当您在已连接的工作表和表格之间创建新连接时:
- 现有连接 仍作为静态数据集保留在表中,您无法再对其进行更新。如果您不再需要此数据集,您可以 将其从表中删除。
- 新连接 在表中显示为它自己的连接数据集。您可以从电子表格或表格中刷新此连接以获取最新数据。
要在表格与其关联的工作表之间创建新连接:
- 从 连接 面板的 外发下,从现有连接的菜单中选择 创建新连接 。
- 在 新数据集名称中,输入一个唯一的名称,以便识别表中新连接的数据集。
- 点击 创建连接。
打开外发连接表或目的地
从 “连接 ”面板中,您可以从菜单快速打开外发连接的工作表或表格:
- 要在电子表格中打开连接的工作表,请选择 转到源工作表。
- 要在 Wdata 中打开连接的表,请选择 打开目标数据。
移除出站连接
要在其连接的表中保留源工作表当前数据的快照,请断开它们的连接。断开传出连接后,工作表的数据仍保留在其连接的表格中,但您将无法再刷新连接以获取最新数据。
要从 连接 面板中断开传出连接,请在 传出下,从连接的菜单中选择 删除连接 。
出站连接和权限
工作表的拥有者只能将工作表连接到他们拥有所有者或编辑者权限的表格。
如果您与他人协作处理电子表格,他们对电子表格对外连接的访问权限取决于他们对工作表和表格的权限。
| 工作表 | 表格 | 连接访问 |
|---|---|---|
| 查看者、所有者或编辑者 | 查看者 | 已锁定 |
| 编辑器 | 编辑或所有者 | 重新整理连线 |
| 所有者 | 所有者 | 完全访问权限 |