Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
In Power BI Desktop, I'm building a query that starts with importing a view from SQL Server. Within the view is a column with type (INT, NULL). When I import the view, for some reason, it's being recognized as text. The weird thing is, I have another column in the view that's the exact same type, (INT, NULL); this column is being recognized as a whole number like I expected. I'll also mention that in creating this view, for the column that is not being recognized as a whole number, in the source table this column was originally text, which gets converted into an integer. Am I missing something, or is this actually the expected behaviour?
I'm also aware that there's options in Power BI Desktop to change the data type after it's been imported, however in doing so, it stops the query from folding. We need query folding in place because we're trying to apply incremental refresh to this table. Appreciate any comments/advice.
EDIT (2020/05/21): Also wanted to add that even though in Power BI desktop it's recognized as text, in the field itself, the value is italicized as if it is actually being recognized as a whole number. But in the column type label still shows up as text.
EDIT 2 (2020/05/22): Thanks for everyone's feedback. Not sure what changed but after importing a few more times again, the data type is now correctly showing up as a whole number. Maybe just a brief glitch?
Hi @Anonymous ,
Based on my test, it will be whole number type after importing from sql server. I really can't reproduce your issue. Please try to open a support ticket. If you have a Pro account it is free. Go to https://support.powerbi.com. Scroll down and click "CREATE SUPPORT TICKET".
Best Regards,
Dedmon Dai