Forum Discussion

joshua1990's avatar
joshua1990
Post Prodigy
2 years ago
Solved

Setting up Incremental Refresh for Weekly Archive

Hi experts! I need some guidance for setting up an incremental refresh. I have a table that stores the sales data each week for last week: Extract Date Sales Data Value 01.07.2024 26.06.2...
  • lbendlin's avatar
    lbendlin
    2 years ago

    I believe the documentation describes the process well. Here is the short version:

     

    - you create RangeStart and RangeEnd parameters in Power Query, set them as datetime, and specify default values that give you enough data to develop with (these default values will be ignored during the actual refresh)

    - you add a filter step in your Power Query with an appropriate datetime column (for example Order Date).  Make sure to set RangeStart to inclusive and RangeEnd to exclusive.    RangeStart <= [Order Date] and [Order Date]<RangeEnd

    - then in Power BI you set the table to incremental refresh for 14 days and storage for 2 years.