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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Varishtha
Helper I
Helper I

Query Folding with MySQL

My data sits in MySql and I want to use incremental refresh feature, but it seems like my queries are not foldable. I checked every step in power query and 'View Native Query' option was greyed out for all steps, which means at no step can my query be folded. I read somewhere that without foldable queries incremental refresh is useless. How can I get around this?

Also can i use incremental refresh on more than 1 table inthe same power bi file?

1 ACCEPTED SOLUTION
edhans
Super User
Super User

According to Query folding on native queries - Power Query | Microsoft Learn MySQL isn't supported for Query Folding, so this will not work. I am not aware of any way around it. To fold, Power Query needs to understand the query language of the server it is connected to and send the SQL commands back to have the server process it. It doesn't look like MS has included MySQL as a supported engine.

 

Without folding, IR is useless. If you have 6 partitions (months) for example, with IR, each month gets read into its proper partition and only recent months are refreshed. Without folding, the entire table is read in to every partition then whatever isn't needed is discarded, so it would actually in this example read the entire table in 6 times. So worse than useless, it will slow you down.

 

However, if you can get a supported datasource, then yes you can set up IR on as many tables in a single semantic model as you want.

 

Query folding on native queries - Power Query | Microsoft Learn



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

1 REPLY 1
edhans
Super User
Super User

According to Query folding on native queries - Power Query | Microsoft Learn MySQL isn't supported for Query Folding, so this will not work. I am not aware of any way around it. To fold, Power Query needs to understand the query language of the server it is connected to and send the SQL commands back to have the server process it. It doesn't look like MS has included MySQL as a supported engine.

 

Without folding, IR is useless. If you have 6 partitions (months) for example, with IR, each month gets read into its proper partition and only recent months are refreshed. Without folding, the entire table is read in to every partition then whatever isn't needed is discarded, so it would actually in this example read the entire table in 6 times. So worse than useless, it will slow you down.

 

However, if you can get a supported datasource, then yes you can set up IR on as many tables in a single semantic model as you want.

 

Query folding on native queries - Power Query | Microsoft Learn



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors