Forum Discussion

bjpowell93's avatar
bjpowell93
Frequent Visitor
4 years ago
Solved

Insert current date then make it static and not refresh on later days

Hi all,   I have a table of products, one product per row. I would like a custom column in which, for each row, once a product status changes from "Fail" to "Pass" (in a status column), the custom ...
  • BA_Pete's avatar
    4 years ago

    Hi bjpowell93 ,

     

    Power Query is a mashup tool, not a data warehouse, therefore the refresh process looks like this:

    Wipe all data > Get current data from source > Perform transformations

    As such, you can't 'fix' data like this within Power Query, it would either have to come from the source, or be partitioned into history using incremental refresh.

     

    Options might be:

    1) Create a 'today's date' column in your query, then use incremental refresh to only refresh a very narrow partition each day, so the dates in the historical partition are retained:

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

     

    2) Have a Slowly Changing Dimension (SCD) table built on the source, such as an SQL stored procedure run daily on the source, with the results written to a table each time.

     

    Pete