Forum Discussion

Nickodemus's avatar
Nickodemus
Icon for Helper III rankHelper III
9 years ago
Solved

How to determine updated records on refresh

Hi All,   I have a data set such as below: I don't get the luxury of any date in the export from the 'booking' system, which isn't ideal. The export is csv.   I get an export, currenty, we...
  • Phil_Seamark's avatar
    9 years ago

    Hi Nickodemus,

     

    How big are the CSV files?  Could you keep all of them and import them each time?  This way you could inject a Date column via Power Query to treat these as separete tables in the data model.  Definitely ugly but would at least give you the ability to compare datasets.

  • ImkeF's avatar
    ImkeF
    9 years ago

    Agree with Phil.

     

    If your files are too large, you can use an R-script to create a transaction-table, by comparing the current version with the previous version and writing the differences into a separate csv-file (in append-mode).

    That way you would only need to import 3 files with each update:

    - the current one

    - the previous one

    - the transactions

     

    How the script should look like: http://www.thebiccountant.com/2015/12/28/how-to-export-data-from-power-bi-and-power-query/

     

    How to apply it directly without visual: http://zomalex.co.uk/using-r-in-power-bi-part-2-execute-a-r-step-in-a-query/