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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
umatripathi
New Member

Query Folding/ Native Query is not folding in Power Query

I am using my database (mysql) for powerbi (not using any query for integration) but eveything in my database is in text, now when i am chaning datatype in power query, native query is not supporting those steps. How could i make it. Please assist in this.

3 REPLIES 3
marcoperson_250
Regular Visitor

Thank you for this information @Martin_D 

Anonymous
Not applicable

Hi @umatripathi ,

There are some conversions that do not support collapsed queries, you can refer to this document for details on which steps to take:
Query folding - Power Query | Microsoft Learn
If you need to change the data type, consider doing this in the database before importing the data into Power BI. 
Or as @Martin_D  put it, please use "Advanced Options" and enter a SQL query when connecting to the database. You can write SQL statements to import data and perform data type conversion in SQL queries.

Best Regards,
Dino Tao
If this post helps, then please consider both of the answers to Accept it as the solution to help the other members find it more quickly.

Martin_D
Super User
Super User

If transformations are not folding and you would still prefer to execute them on the database server rather than in the Power Query engine, then you can put the native SQL query code into Power Query instead. The input field is in the Advanced options of the MySQL connector:

Martin_D_0-1703196454586.png

Helpful resources

Announcements
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors