Forum Discussion

jonimatix_pp's avatar
jonimatix_pp
Frequent Visitor
1 year ago
Solved

Dataflow Incremental Refresh adding filter as last step

Hi,   I am implementing incremental refresh on a dataflow with ODBC data source. I am using RangeStart / RangeEnd inside M code to change the source query, in order to behave similar to query foldi...
  • freginier's avatar
    1 year ago

    Hey there!

     

    Power BI automatically adds the autogenerated_for_incremental_refresh filter as a part of its internal process to manage incremental refresh. This filter ensures that only data within the defined range (usually based on the RangeStart and RangeEnd) is considered during the refresh process. It ensures that only the new or changed data gets loaded into your dataset, improving refresh times and performance.

     

    Unfortunately, you cannot directly remove or bypass this automatically generated filter when using incremental refresh. The autogenerated_for_incremental_refresh filter is part of Power BI's internal mechanism for tracking and managing incremental data loads.

     

    To work around it you could try: 

    Adjust the Position of Your Custom Filter: You can position your custom filters (like those based on RangeStart and RangeEnd) earlier in the query steps. This can help in some cases, ensuring that the data is filtered appropriately before the autogenerated_for_incremental_refresh filter is applied. However, it won't remove the autogenerated filter—it just ensures your filtering logic is applied before it.

    Use Query Folding: Ensure that your query folding is working properly with the ODBC source. Query folding will ensure that filtering happens at the source level, which can significantly reduce the amount of data transferred during the refresh. This will reduce the impact of having an additional filter in the query.

     

    Hoep this helps!

    😁😁