Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hello All, Thank you for your time. I am trying to import data into Power BI from a SQL Server database view.
However, some of the columns in the view are not eventually loading in power bi. These columns don't even show in the data preview or query editor. I am able to see the columns and data when I query the db table directly in SQL Server.
Any suggestions?
Thanks Ram
I struggled with this, and it was just deleting the cache that made it for me.
In Power BI you will find the option under File > Options and settings > Options > Data Load > Data Cache Management Options > Clear Cache.
Hi @ramz45,
1. How do you connect to this SQL view from Power BI desktop, in DirectQuery mode or Import mode? Do missing columns have any different properties from other columns?
2. Which permission do you grant for this user which is used to get data in Power BI desktop. Please try to grant the user "view definition" on the entire database with "use databasename; grant view definition to username" mentioned in this thread.
3. Please run the latest Power BI desktop version 2.51.4885.701 64-bit (October 2017).
Best Regards,
Qiuyun Yu
Thank you for your prompt reply. I was trying to connect using Import Mode. However, I was able to pull in the data when explicitly writing a straightforward select statement(not direct query) when importing instead of just connecting to the source and letting power bi pull in the information. I am not sure how one is different from the other. To the best of my knowlege the missing columns don't have anything special. I am querying a "View". In another example the table showed Zero records when importing, but displayed data when I used a SQL query.
Thanks again!
Hi @ramz45,
I have tested in my desktop but can't reproduce it. Have you tried other view? Does the issue happen to this specific view only?
Best Regards,
Qiuyun Yu
Thanks again for helping me. I faced the issue with 2 views so far. The first one with columns missing and the second one showed completely empty. Both times I was able to bypass the issue by explicity specifying the sql during import. I will investigate further to provide more information.
Hi @ramz45,
I would suggest you create a support ticket to let engineer look into these two views to see what happens:
Best Regards,
Qiuyun Yu
Thank you sir. Much appreciated