Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in BI by (17.6k points)

I have a data model in the Power BI desktop. I'd like to publish it to the server, but I'd also like to have an internal report run MDX (or DAX) queries against it. Is this possible? Can I just create a connection string and connect to Power BI like to an SSAS Cube? Maybe using the REST APIs?

Edit: Thanks for your answers. Kyle gave me the best answer to my question, so I accepted him, but all of you made me clear that I'd better just use SSAS. This is what I did, with some hassle of seeing up the HTTP bridge, but it works like a charm now.

closed

1 Answer

0 votes
by (47.2k points)
selected by
 
Best answer

Yes, it is possible in a basic sense. Whenever we run Power BI, it creates instances of SSAS Tabular in the backend that you can connect and run queries against. This is not directly supported by Microsoft, but there is an alternative to do this. Go through these steps:

  • Go to user->AppData->Local->Temp->Power BI Desktop

  • Open  PowerBI Desktop model

  • The new folder will appear in the temp folder and inside there is a folder called AnalysisServicesWorkspace1111111111(The numbers at the end are random).Inside that folder is a file, msmdsrv.port.txt, which contains the port number (portnum) on which the SSAS Tabular model is running

  • You can open SSMS and connect to Analysis Services server localhost:portnum

  • The specific database instance you can find either via SSMS or the name of the GUID folder in the workspace folder (it'll be something like "33df46dd-8c77-46eb-bf01-8d545f626723.0.db")

Want to become a Business Analyst? Then have a look at Power BI course from Intellipaat! 

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Nov 30, 2020 in BI by Chris (11.1k points)
0 votes
1 answer
asked Nov 4, 2020 in BI by Sudhir_1997 (55.6k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...