Forum Discussion
Create Connection: This query contains transformations that cannot be used for live connection
- 9 years ago
Hi arobin,
Could you please test using a simple SQL statement? You can create a simple table named TableA in your database, then type the basic query statement using like: select * from TableA in Direct Query model, check if it works. Some function is not used in Direct Query model. If it works fine, it will document the function is unable. You'd better test step by step.
If the function is not used, please create a new result table, then import them to Power BI. If you have any issue, please let me know.
Best Regards,
Angelia
Hi arobin,
First, you should debug your SQL statement to work fine in SSMS. The code run correctly in SSMS? Then you type it in Power BI. If you have any issue about T-SQL, please post your issue to Transact SQL forum to get professinal support.
Best Regards,
Angelia
Hi Angelia,
yes it worked in SSMS and I copy paste the query in power BI and still got same issue.
Thanks for the advise, I will try on the T-SQL forum.
I apprreciate all your help and your time...
Andre
- v-huizhn-msft9 years agoMicrosoft Employee
Hi arobin,
If it works fine in SSMS, it should be fine in Power BI. Please verify you connect the SQL Server database successfuly.Best Regards,
Angelia- arobin9 years agoFrequent Visitor
Hi Angelia,
The query actually worked when I choose "Import" connectivity mode and the result gets loaded well.
However, if I use "DirectQuery" connectivity mode, it only return the result of the query and when I hit "Load"
it fails...
Please see below...
PBut when I go and hit "Load" this message appears.
- v-huizhn-msft9 years agoMicrosoft Employee
Hi arobin,
Could you please test using a simple SQL statement? You can create a simple table named TableA in your database, then type the basic query statement using like: select * from TableA in Direct Query model, check if it works. Some function is not used in Direct Query model. If it works fine, it will document the function is unable. You'd better test step by step.
If the function is not used, please create a new result table, then import them to Power BI. If you have any issue, please let me know.
Best Regards,
Angelia