Forum Discussion
Add CAST to select in Odbc.Datasource?
Hello Anonymous,
Thanks for your valuable answer, I had totally missed out the part of the Constant override being deprecated.
The other link you provided, I have seen it before and managed to test some different mappings but never succeeded with selecting a DATA_TYPE that Power BI automatically interpreted as the Date/time/zone column type. Any suggestion?
But even though I got that working, I am fearing that the casting will still be required in the query's select statement, which I now realize will not be possible. 😕 Are there any other ways to query fold the column type casting?
Hi joakimE ,
Please review the following links, hope they can help you.
How (not) to break Power BI Query folding by changing data types!
Enable QUERY FOLDING for native queries in Power Query / Power BI
Changing data types that do not break query-folding in Power Query / Power BI
Best Regards