假设您有一个基于未过滤的 Google Analytics 网站媒体资源的数据源,并且已基于该数据源创建了 Looker Studio 报告。现在,假设您在 Google Analytics 账号中创建了一个新的经过过滤的媒体资源,并希望将该数据用于现有报告。如需导入经过过滤的新数据,同时保留所有配置更改(例如计算字段、重命名字段或更改的汇总),您可以将数据源重新关联到新媒体资源。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-25。"],[],[],null,["# Edit the data source connection\n\nYou can change a data source's connection to the underlying data. This lets you connect to different data using an existing data source.\n\nEditing the data source connection lets you:\n\n- Reestablish a broken connection to your data.\n- Connect to a different account, Google Sheet, database table, and such.\n- Edit a BigQuery custom query connection.\n- Use a different connector.\n\nExample\n-------\n\nSuppose you have a data source based on an unfiltered Google Analytics web property and have created a Looker Studio report based on that data source. Now, say you create a new filtered property in your Analytics account, and want to use that data with your existing report. To bring in the new filtered data and leave any configuration changes intact (such as calculated fields, renamed fields, or changed aggregations), you can reconnect the data source to the new property.\n| **Warning:** Editing a data source connection can have a big impact on your reports. **Proceed with caution.**\n\nWho can reconnect a data source\n-------------------------------\n\nAnyone who can edit the data source can edit its connection. For embedded data sources, this includes report editors. For reusable data sources, you must have [Can Edit permission](/looker/docs/studio/roles-and-permissions) to the data source.\n\nHow to reconnect a data source\n------------------------------\n\n1. [Edit the data source](/looker/docs/studio/edit-a-data-source).\n2. In the upper left, click **EDIT CONNECTION**.\n3. Select the new dataset.\n4. In the upper right, click **RECONNECT**. Looker Studio shows the fields changed by this action, if any.\n5. Click **APPLY**.\n\nEffects of reconnecting a data source\n-------------------------------------\n\n- New fields from the dataset are added to the data source.\n- Fields that have been removed from the dataset are removed from the data source.\n- Fields that have been removed from the data source are added back to the data source.\n- If there are changes to the fields or the underlying dataset, you become the new [credentials owner](/looker/docs/studio/data-credentials). If the data source uses service account credentials, and you don't have permission to use that service account, you become the new credentials owner.\n- Other changes you've made to the data source, such as renaming fields, changing field types or aggregations, and adding descriptions, are not affected.\n- Any reports using to this data source continue to do so, however, you may need to fix any charts broken by the field changes.\n\n| **Important:** If any of the removed dimensions or metrics are used in calculated fields, those calculated fields are disabled. You can edit or remove them, as needed."]]