Forum Discussion

mperrot's avatar
mperrot
Frequent Visitor
8 years ago
Solved

How can I save records before refreshing my data ?

Power BI community, I need your insights..   I have data coming from a CRM, they are tickets, open or closed. Everytime I refresh, some of the open tickets besome closed obviously. But in the analy...
  • stretcharm's avatar
    8 years ago

    Ideally you take snapshots with some ETL such as SSIS or scheduled program.

     

    If this is not possibel you could do it in PowerbI using R.

     

    An R transformation could snap the data and save as a file, you can then load a folder of files and use the filename to to ensure you know when it was snapped.

     

    # 'dataset' holds the input data for this script
    
    filename <- cat("C:\\temp\\myFile", format(Sys.time(), "%Y%m%d_%H%M"), ".csv", sep="")
    
    #write.csv(dataset, file = filename )
    
    output <- dataset

    https://docs.microsoft.com/en-us/power-bi/desktop-r-in-query-editor