Forum Discussion

DanaG's avatar
DanaG
New Member
5 years ago
Solved

Separating a date/ time column to date column and time column without breaking query folding

Hi, I am importing data from a postgres db. I have a date/time column - which I would like to split into date column and time column. I would like to implement incremental refresh and therefore tr...
  • v-yingjl's avatar
    v-yingjl
    5 years ago

    Hi DanaG ,

    As far as I know, currently change the date type to time will not produce query folding in power bi.

    Generally, the following list describes transformations that can be query folded.

    • Removing columns.

    • Renaming columns (SELECT column aliases).

    • Filtering rows, with static values or Power Query parameters (WHERE clause predicates).

    • Grouping and summarizing (GROUP BY clause).

    • Expanding record columns (source foreign key columns) to achieve a join of two source tables (JOIN clause).

    • Non-fuzzy merging of fold-able queries based on the same source (JOIN clause).

    • Appending fold-able queries based on the same source (UNION ALL operator).

    • Adding custom columns with simple logic (SELECT column expressions). Simple logic implies uncomplicated operations, possibly including the use of M functions that have equivalent functions in the SQL data source, like mathematic or text manipulation functions.

    • Pivoting and unpivoting (PIVOT and UNPIVOT operators).

     

    If the last applied step broke the query folding, when you configure incremental refresh, you would see this warnning message:

    Not recommend but not forbidden that this incremental refresh could work but can cause incremental refresh to be very slow, and the process can run out of resources either in the Power BI service or in the on-premises data gateway if used.

    Please refer: Query folding in incremental refresh 

     

    Best Regards,
    Community Support Team _ Yingjie Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.