Substituir a fonte de dados de um componente, página ou relatório
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
É possível substituir a fonte de dados de gráficos e controles selecionados, a página atual ou o relatório inteiro. Confira alguns motivos para fazer isso:
Copiar um relatório e substituir sua fonte de dados pela fonte de um cliente.
Testar um relatório sem filtros de e-mail e, em seguida, mudar para uma fonte de dados com filtragem de e-mail.
mudar a fonte de dados de um componente específico de contas, planilhas ou tabelas de banco de dados;
substituir a página padrão ou a fonte de dados no nível do relatório.
O que acontece quando você substitui uma fonte de dados
Quando você substitui uma fonte de dados no seu relatório, o Looker Studio tenta mapear os campos da fonte antiga para os campos da nova usando como base vários critérios correspondentes, incluindo ID e nome do campo, e outras informações de configuração do próprio relatório. O Looker Studio não tentará mapear seus campos antigos em filtros e campos calculados.
Se não encontrar dados correspondentes, seu relatório vai mostrar componentes com a seguinte mensagem:
Substituir a fonte de dados de um componente não afeta os outros componentes do relatório.
Substituir uma fonte de dados no nível do relatório ou da página
A maioria dos relatórios não tem fontes de dados nesse mesmo nível nem no da página, a menos que você as tenha definido explicitamente. Configurar uma fonte de dados no nível do relatório ou da página não afeta os componentes existentes no relatório. Em vez disso, os novoscomponentes que você adicionar vão usar a fonte de dados no nível da página ou do relatório por padrão.
O processo de substituição de uma fonte de dados no nível do relatório ou da página é o mesmo descrito anteriormente.
Na navegação superior, selecione primeiro Página e, em seguida, Configurações da página atual para abrir o painel Configurações da página atual.
No painel Configurações da página atual, selecione a guia Configuração e clique na fonte atual ou Selecione a fonte de dados, se nenhuma delas tiver sido adicionada.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-08-25 UTC."],[],[],null,["# Replace the data source for a component, page, or report\n\nYou can replace the data source for selected charts and controls, the current page, or the entire report. Reasons you might want to do this include:\n\n- Copying a report and replacing your data source with a client's data source.\n - See also: [Add a data control to a report](/looker/docs/studio/data-control).\n- Testing a report with no email filters applied, then switching to a data source with email filtering.\n- Switching the data source for a selected component from one account, sheet, or database table to another.\n- Overriding the default page or report-level data source.\n\nWhat happens when you replace a data source\n-------------------------------------------\n\nWhen you replace a data source in your report, Looker Studio tries to map the fields in the old data source to the fields in the new data source based on a number of matching criteria, including field ID, field name, and other configuration information from the report itself. Looker Studio won't try to map your old fields in calculated fields and filters.\n\nIf no suitable match is found, your report may display components with the following message:\n\n`Important: Chart configuration incomplete. Invalid/Missing dimensions, metrics, filters.`\n\nTo fix this, edit the incomplete components and select new dimension, metric, sorting, or date range fields.\n| **Warning:** We strongly recommend that you review your entire report for accuracy after you replace any data sources that are used in the report.\n\nReplace a component data source\n-------------------------------\n\n1. [Edit your report](/looker/docs/studio/edit-a-report).\n2. Select one or more charts or controls.\n3. In the selected component's **Properties** panel, select the **Setup** tab.\n4. In the **Data source** section, click the current data source name.\n5. Select an existing data source from the options that are listed, or click **+ Add data** to add a new data source.\n 1. Learn more about [creating a data source](/looker/docs/studio/add-data-to-a-report).\n6. If prompted, click **Add to report.**\n\nReplacing the data source for one component has no effect on the other components in your report.\n\nReplace a page or report-level data source\n------------------------------------------\n\nMost reports won't have page or report-level data sources unless you've explicitly set them. Setting a data source at the page or report level has **no effect on existing components** in your report. Instead, **new** **components** that you add use the page or report-level data source by default.\n\nReplacing a page or report-level data source follows the same process as outlined previously.\n\n### Replace the data source for the current page\n\n1. [Edit your report](/looker/docs/studio/edit-a-report).\n2. Navigate to a specific page.\n3. In the top navigation, first select **Page** and then select **Current page settings** to open the **Current Page Settings** panel.\n4. In the **Current Page Settings** panel, select the **Setup** tab, and then click the current data source (or **Select Data Source**, if no data source has been added).\n5. Select an existing data source or create a new one.\n6. If prompted, click **Add to report.**\n\n### Replace the data source for the entire report\n\n1. [Edit your report](/looker/docs/studio/edit-a-report).\n2. In the top navigation, select **File** and then select **Report settings** to open the **Report Settings** panel.\n3. In the **Report Settings** panel, click the current data source (or **Select Data Source**, if no data source has been added).\n4. Select an existing data source or create a new one.\n5. If prompted, click **Add to report.**\n\nRelated resources\n-----------------\n\n[Edit the data source connection.](/looker/docs/studio/edit-the-data-source-connection)"]]