Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
marcelocostafil
Frequent Visitor

Armazenar histórico e atualizar registros - Power BI

Olá a todos.

 

Eu estou com dúvidas em relação a uma atualização do meu PBI.

 

Basicamente:

- Tenho uma tabela em SQL que atualiza todos os dias, ou seja, "limpa" todas as linhas e substitui pelos novos registros.

- Tenho uma tabela em Power BI que lê este SQL.

 

O que eu queria tentar fazer é:

- Todos os dias, ler esta tabela em SQL, e ao invés de limpar os registros de ontem (e antes disso), mantê-los na tabela, e só adicionar os novos registros.

- Já tentei com atualização incremental, e por mais que eu tenha configurado, parece sempre remover as linhas anteriores a hoje.

marcelocostafil_0-1715185869116.png

Ps.: já tentei as três opções abaixo com a coluna de data de atualização do SQL, mas nada parece funcionar.

 

marcelocostafil_1-1715185895892.png

 

Qualquer informaçao adicional que precisem, estou à disposição.

 

Obrigado.

Marcelo

2 REPLIES 2
v-heq-msft
Community Support
Community Support

Hi @marcelocostafil ,
Based on your description, incremental refresh allows new or modified data to be loaded while retaining historical data that has already been loaded.
First, ensure that the RangeStart and RangeEnd parameters are properly configured in Power BI Desktop. These parameters define the date range of the data to be refreshed.
Second, when defining an incremental refresh strategy, it is critical to correctly specify the historical storage period (e.g., keep data from the past 3 years) and the refresh period (e.g., refresh data from the past 1 day). This ensures that old data is retained and only new data is added.
Finally, for advanced schema, you can use tools such as SQL Server Management Studio (SSMS) or Tabular Editor to manage partitions through XMLA endpoints. This gives you more control over the management of historical data.
You can refer to these two documents to configure your incremental refreshes
Configure incremental refresh and real-time data for Power BI semantic models - Power BI | Microsoft...
Advanced incremental refresh and real-time data with the XMLA endpoint in Power BI - Power BI | Micr...

Best regards,
Albert He

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Olá!

 

Peço desculpas pela demora na resposta.

 

Na verdade, tentei fazer a atualização incremental com os parâmetros que você comentou, e também li os artigos.

 

Mas não sei se estou fazendo algo errado.

 

Esta tabela remove todos os dados diariamente e os substitui por novos. Então ao configurar a atualização incremental, os dados que eu queria manter de ontem já não estão lá quando Power BI atualiza.

 

Realmente não sei se este tipo de atualização é possível...

 

Obrigado pela sua resposta 🙂

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors