Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
LankelaAnilRedd
Frequent Visitor

Unable to M query can be folded. incremental refresh can't be suggested for non-foldable queries.

I am getting following error "Unable to M query can be folded. incremental refresh can't be suggested for non-foldable queries."

my datasource is Plsql views. getting data through odbc. view native query is able to see till navigation step and next steps disabled. here i have removed all the steps after navigation and applied incremental refresh but same error i am facing. Please help me.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @LankelaAnilRedd,

As this official documentation referred, the data sources like relational databases, OData feeds (including SharePoint lists), Exchange, and Active Directory support query folding. And some transformations may prevent query folding, please review the list below and check if there is any following transformation step in your query.

  • Merging queries based on different sources.

  • Appending (union-ing) queries based on different sources.

  • Adding custom columns with complex logic. Complex logic implies the use of M functions that have no equivalent functions in the data source. For example, the following expressions format the OrderDate column value (to return a text value).

    yingyinr_0-1672388083406.png
  • Adding index columns.

And the following blogs decribe the fixing of query folding, hope they can help you.

Fixing Query Folding with SQL Server in Power BI for Incremental Refresh

Power BI — Incremental refresh and the struggles of query folding

Best Regards

View solution in original post

4 REPLIES 4
LankelaAnilRedd
Frequent Visitor

Hi,

Thanks for the help.
After navigation step query folding disabled for next steps. So, for checking native query functionality i have removed all steps and kept only source and navigation steps but getting same error "M query not folded and incremental refresh not suggested for non foldable queries"

Anonymous
Not applicable

Hi  @LankelaAnilRedd ,

Whether your problem has been resolved? If yes, could you please mark the helpful post as Answered? It will help the others in the community find the solution easily if they face the same problem as yours. Thank you.

Best Regards

Anonymous
Not applicable

Hi @LankelaAnilRedd,

As this official documentation referred, the data sources like relational databases, OData feeds (including SharePoint lists), Exchange, and Active Directory support query folding. And some transformations may prevent query folding, please review the list below and check if there is any following transformation step in your query.

  • Merging queries based on different sources.

  • Appending (union-ing) queries based on different sources.

  • Adding custom columns with complex logic. Complex logic implies the use of M functions that have no equivalent functions in the data source. For example, the following expressions format the OrderDate column value (to return a text value).

    yingyinr_0-1672388083406.png
  • Adding index columns.

And the following blogs decribe the fixing of query folding, hope they can help you.

Fixing Query Folding with SQL Server in Power BI for Incremental Refresh

Power BI — Incremental refresh and the struggles of query folding

Best Regards

amitchandak
Super User
Super User

@LankelaAnilRedd , Most of the time when you have a query, Power  bi will not able to fold the query means able to generate a native query

refer video from guyinacube : https://www.youtube.com/watch?v=8hjdOCni_ZY

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.