Forum Discussion
id column type text convert to number (query folding)
- Anonymous4 years ago
Hi akhaliq7 ,
Did you use Power BI Desktop to connect data? Try to select 'Detect column types and headers for unstructured sources according to each file's setting' in the options.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi BA_Pete
Could you please explain why we shouldn't change it to a Whole Number type ?
Thanks
Because Int64.Type isn't recognised by SQL Server for query folding unless you use the [UnsafeTypeConversions = true] argument. As this suggests, it's potentially unsafe and, therefore, not a recommendation I'd generally make to users on here.
If it's something you really want/need to do, then I'd suggest reading Chris Webb's methods here, and understand the risks:
Pete