Substitua a origem de dados de um componente, uma página ou um relatório
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Pode substituir a origem de dados dos gráficos e controlos selecionados, da página atual ou de todo o relatório. Os motivos pelos quais pode querer fazê-lo incluem:
Copiar um relatório e substituir a sua origem de dados pela origem de dados de um cliente.
Testar um relatório sem filtros de email aplicados e, em seguida, mudar para uma origem de dados com filtragem de email.
Mudar a origem de dados de um componente selecionado de uma conta, folha ou tabela de base de dados para outra.
Substituir a origem de dados predefinida ao nível da página ou do relatório.
O que acontece quando substitui uma origem de dados
Quando substitui uma origem de dados no relatório, o Looker Studio tenta mapear os campos da origem de dados antiga para os campos da nova origem de dados com base num número de critérios correspondentes, incluindo o ID do campo, o nome do campo e outras informações de configuração do próprio relatório. O Looker Studio não tenta mapear os seus campos antigos em campos calculados e filtros.
Se não for encontrada uma correspondência adequada, o relatório pode apresentar componentes com a seguinte mensagem:
Se lhe for pedido, clique em Adicionar ao relatório.
A substituição da origem de dados de um componente não tem qualquer efeito nos outros componentes do relatório.
Substitua uma origem de dados ao nível da página ou do relatório
A maioria dos relatórios não tem origens de dados ao nível da página ou do relatório, a menos que as tenha definido explicitamente. A definição de uma origem de dados ao nível da página ou do relatório não tem efeito nos componentes existentes no relatório. Em alternativa, os novoscomponentes que adicionar usam a origem de dados ao nível da página ou do relatório por predefinição.
A substituição de uma origem de dados ao nível da página ou do relatório segue o mesmo processo descrito anteriormente.
Na navegação superior, selecione primeiro Página e, em seguida, selecione Definições da página atual para abrir o painel Definições da página atual.
No painel Definições da página atual, selecione o separador Configuração e, de seguida, clique na origem de dados atual (ou em Selecionar origem de dados, se não tiver sido adicionada nenhuma origem de dados).
Selecione uma origem de dados existente ou crie uma nova.
Se lhe for pedido, clique em Adicionar ao relatório.
Na navegação superior, selecione Ficheiro e, em seguida, selecione Definições do relatório para abrir o painel Definições do relatório.
No painel Definições do relatório, clique na origem de dados atual (ou em Selecionar origem de dados, se não tiver sido adicionada nenhuma origem de dados).
Selecione uma origem de dados existente ou crie uma nova.
Se lhe for pedido, clique em Adicionar ao relatório.
[[["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-20 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)"]]