I am very new to Power BI and I am not familiar with the message I encountered when trying to make a DirectQuery connection to SQL Server. Can anyone advise what does "Create Connection: This query contains transformations that cannot be used for live connection" means? I was trying to get a live data in SQL Server using SQL statement below.
select a.PAYMENT_TYPE, count(a.PAYMENT_TYPE) from VENDOR_ACCOUNTS a, (select * from VENDOR_Keys where RemoteSystem='ECC_VENDOR') b where a.InternalId=b.InternalId GROUP BY a.PAYMENT_TYPE order by a.PAYMENT_TYPE
when I cliked on load data the said mesage appeared.
is there something wrong in my query that affects the live connection?
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.
I don't have SSMS installed yet. Trying to get the installer. I am using Oracle SQL Developer to test the query and that test query runs fine there. I wonder if that kind of query runs fine in SSMS. Thank a lot for your response Thiyagu. It helped me a lot as a newbie here.
Select VENDOR.MDM_PAYMENT_TYPE, count(VENDOR.MDM_PAYMENT_TYPE) FROM MDM_TRANSACTIONAL_VENDOR_ACCOUNTS_27 VENDOR LEFT OUTER JOIN (Select * from MDM_TRANSACTIONAL_VENDOR_ACCOUNTS_27_Keys where RemoteSystem='SAP_ECC_VENDOR') VENDOR_KEY on(VENDOR.MDMInternalId=VENDOR_KEY.MDMInternalId) Group by VENDOR.MDM_PAYMENT_TYPE Order by VENDOR.MDM_PAYMENT_TYPE
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.