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
fabiopaturzo
Helper I
Helper I

Exchange Rate Update daily and Incremental

Hi 

I have an API that every date upload the exchange rate without the date, i added the Data in lthe last colomn

Every day this row will be update.

 

fabiopaturzo_0-1689931324310.png

I want to save in antoher table the History

Thank you

 

1 ACCEPTED SOLUTION
rubayatyasmin
Super User
Super User

Hi, @fabiopaturzo 

 

use append table in power qury. 

 

see the doc Append queries - Power Query | Microsoft Learn

 

rubayatyasmin_0-1689517080227.png


Did I answer your question? Mark my post as a solution!super-user-logo

Proud to be a Super User!


View solution in original post

6 REPLIES 6
BA_Pete
Super User
Super User

Hi @fabiopaturzo ,

 

Power Query is not a data warehouse and is not designed to retain data beyond its immediate use.

The PQ refresh process works like this:

Wipe all data > Import available data from source > Perform transformations > Push to Data Model.

As such, there's no function to create and retain history/archives of changing source data.

 

The closest native function (within the Power BI universe) would be Incremental Refresh, which comes with its own significant caveats:

https://learn.microsoft.com/en-us/power-bi/connect-data/incremental-refresh-overview 

 

Beyond this, you will need to arrange some kind of data warehousing or storage capability at your end to keep the history that you can then query with PQ.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




fabiopaturzo
Helper I
Helper I

Can you do one example?

sure. I did try this one with a sample example. looks like it is rewriting the row as the append table is updating, not adding new rows. But then I thought that it is supposed to work like that. 

 

So, you need to use a DB actually to store data on a daily basis. use SSIS or may be can use Azure logic app to push the data. It is suggested that you use DB for long term data storage. 

 

rubayatyasmin_0-1689517080227.png

 

 


Did I answer your question? Mark my post as a solution!super-user-logo

Proud to be a Super User!


Where is the example?

This is the sample data I created as per your question. 

 

the table that will update the date regularly.

rubayatyasmin_0-1690208729178.png

 

Destination table. assumed there are some historical saved previously some other way.

 

rubayatyasmin_1-1690208887106.png

 

then loaded it into the Power Query.  As two tables structure is same, we do append, so I tries to use Append functionality but noticed that the value is also changing in the destination table as the value changes in the other table. Then I thought PQ is not designed to store information, you need to use a DB for long term data saving. 

 

 

rubayatyasmin_0-1689517080227.png


Did I answer your question? Mark my post as a solution!super-user-logo

Proud to be a Super User!


rubayatyasmin
Super User
Super User

Hi, @fabiopaturzo 

 

use append table in power qury. 

 

see the doc Append queries - Power Query | Microsoft Learn

 

rubayatyasmin_0-1689517080227.png


Did I answer your question? Mark my post as a solution!super-user-logo

Proud to be a Super User!


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