According to Microsoft's documentation, changing a column data type will break query folding.
![](https://static.wixstatic.com/media/9d5247_01b6827480fd417aa79880ecfd11ee02~mv2.png/v1/fill/w_980,h_410,al_c,q_90,usm_0.66_1.00_0.01,enc_auto/9d5247_01b6827480fd417aa79880ecfd11ee02~mv2.png)
Not all changes in data types will break query folding
This does not have to be the case though. It depends on your data source.
I tested the following Power Query data types:
text, decimal, whole number, date and datetime.
These transformations were possible and would not break query-folding:
Decimal -> text
Whole number -> decimal
Whole number -> text
Date -> datetime
Date -> datetimezone
Date -> decimal
Date -> text
Datetime -> date
Datetime -> datetimezone
Datetime -> decimal
Datetime -> text
Text -> all transformations would break query-folding
My database was running on SQL Server 2016, other versions might behave differently.
If you have had any experience with this feel free to comment!
Comments