Forum Discussion

skourtip's avatar
skourtip
Frequent Visitor
4 years ago
Solved

Copy Table

Hi to everyone

 

I have a table connected with dynamics 365, the records are only 3 month back, everyday it erase a day, is ther a way to copy this table and from now on the second table keeps the data and not erase the day?

 

Thanx in advance

3 Replies

  • skourtip if the old data gets removed in the PQ there is no way you can keep it. You have to change the logic in PQ so as not to filter the data.

     

     

    Follow us on LinkedIn and  to our YouTube channel

     

    Learn about conditional formatting at Microsoft Reactor

    My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

     

    Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi skourtip ,

    Power BI is a "read only" system so it doesn't have the ability to store data from three months ago after a refresh. 

    I have found some similar documents. Please refer to the following links to see if it helps you.

    refer

    https://www.thebiccountant.com/2017/01/11/incremental-load-in-powerbi-using-dax-union/

    https://blog.crossjoin.co.uk/2020/04/13/keep-the-existing-data-in-your-power-bi-dataset-and-add-new-...

     

    You will either have to modify the source system , or put in an intermediate process in place to store a previous day snapshot of data, then have Power BI read in the source data and the snapshot, then do the comparison.

     

     

    Best Regards

    Community Support Team _ Polly

     

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

  • Hi skourtip ,

    You might have to load the data from the table where the data gets cleared day by day to another table that is not cleared daily as a first step. Then, to that add, the latest data on a daily basis and you can use the same in Power BI report.

     

    This way you can retain the data older than 3 months in the new table as well as add the latest data that comes everyday to that new table from the original source table. Power BI also can display the data older to 3 month as it is going to refer to the new table

     

    I would suggest you create the table even before bringing the data to Power BI. Don't think the above approach can be fully done in Power BI itself

     

    Hope this helps!!