Forum Discussion

jereaallikko's avatar
jereaallikko
Helper III
5 years ago
Solved

Old data vs new data comparison

Hi all,   I have data coming from direct query with M -language code from a company internal database. The data contains information about product testing, same products are tested continuously aga...
  • selimovd's avatar
    5 years ago

    Hey jereaallikko ,

     

    you could do that with incremental refresh. So daily you could just load the latest data and grow your dataset like that. Make sure to add a column with the load date, to be able to handle the snapshots.

    The problem is if a load fails or you have to do changes that will reset the dataset you don't have any chance to reload the whole data. For that reason I would try to handle that in the source.

     

    For example, create a stored procedure that is executed daily to copy the data from the source to another table. Like that you can manage the snapshots in the new table. The advantage is, that if you have to reload your data, you have the whole history in the SQL server. Also if you want to use the data in a different way in the future.

     

    If you need any help please let me know.
    If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
     
    Best regards
    Denis