Anyone managed to create a linked server to that firing DAX Queries via OPENQUERY is possible via TSQL Code?
I tried every combination with bellow TSQL Code already without success. Creating a linked server for an onPrem SSAS Tabular instance worked but not for the PowerBI.com datasets. Obviously the MSOLAP.7 provider has to be installed first in SQL Server? Thanks for any hints..
Backgound:
I need to consume data from a published PBI-dataset in R-Script. In R-Script there seems to be no possiblility to directly connect to DAX/PowerBI sources.
EXECmaster.dbo.sp_dropserver@server=N'PBI', @droplogins='droplogins'
EXECmaster.dbo.sp_addlinkedserver
@server =N'PBI',-- name of linked server
@srvproduct=N'MSOLAP',
@provider=N'MSOLAP.7',-- see list of providers available on SQL Server under Linked Server node in SSMS Object Browser
@datasrc=N'https://analysis.windows.net/powerbi/api;;Initial Catalog=ec789b72-07ad-4f48-a9ee-c3d62aba05f1',-- machine or instance name that host Analysis Services
@catalog=N'model'-- Analysis Services database (cube)
EXECmaster.dbo.sp_addlinkedsrvlogin
@rmtsrvname=N'PBI',
@useself=N'False',
@locallogin=NULL,
@rmtuser=N'user@domain.com',
@rmtpassword='***'
Select*FromOpenQuery(PBI,'EVALUATE TESTTABLE')